	.file	"extr_r8a66597-hcd.c_pipe_buffer_setting.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pipe_buffer_setting, @function
pipe_buffer_setting:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR [rsi]
	test	rdi, rdi
	jne	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rbx, rsi
	call	get_pipectr_addr@PLT
	mov	esi, DWORD PTR ACLRM[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	r8a66597_bset@PLT
	mov	rdi, QWORD PTR [rbx]
	call	get_pipectr_addr@PLT
	mov	esi, DWORD PTR ACLRM[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	r8a66597_bclr@PLT
	mov	edx, DWORD PTR PIPESEL[rip]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	r8a66597_write@PLT
	cmp	QWORD PTR 40[rbx], 0
	jne	.L3
	mov	esi, DWORD PTR R8A66597_DIR[rip]
	or	esi, DWORD PTR 8[rbx]
.L4:
	mov	edx, DWORD PTR PIPECFG[rip]
	or	esi, DWORD PTR 12[rbx]
	mov	rdi, rbp
	call	r8a66597_write@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR PIPEBUF[rip]
	mov	rdi, rbp
	sal	esi, 10
	or	esi, DWORD PTR 20[rbx]
	call	r8a66597_write@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	r12d, DWORD PTR PIPEMAXP[rip]
	call	make_devsel@PLT
	or	eax, DWORD PTR 24[rbx]
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	r8a66597_write@PLT
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, DWORD PTR PIPEPERI[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	r8a66597_write@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	cmp	esi, DWORD PTR R8A66597_BULK[rip]
	jne	.L4
	mov	eax, DWORD PTR R8A66597_DBLB[rip]
	or	eax, DWORD PTR R8A66597_SHTNAK[rip]
	or	esi, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pipe_buffer_setting, .-pipe_buffer_setting
	.comm	R8A66597_SHTNAK,4,4
	.comm	R8A66597_DIR,4,4
	.comm	R8A66597_DBLB,4,4
	.comm	R8A66597_BULK,4,4
	.comm	PIPESEL,4,4
	.comm	PIPEPERI,4,4
	.comm	PIPEMAXP,4,4
	.comm	PIPECFG,4,4
	.comm	PIPEBUF,4,4
	.comm	ACLRM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_r8a66597-hcd.c_pipe_buffer_setting.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipe_buffer_setting, %function
pipe_buffer_setting:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L10
	mov	r5, r0
	mov	r0, r3
	mov	r4, r1
	ldr	r7, [r6]
	bl	get_pipectr_addr
	mov	r1, r7
	mov	r2, r0
	mov	r0, r5
	bl	r8a66597_bset
	ldr	r0, [r4]
	ldr	r6, [r6]
	bl	get_pipectr_addr
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	r8a66597_bclr
	ldr	r3, .L10+4
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r4]
	bl	r8a66597_write
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L10+8
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	orr	r3, r3, r1
.L4:
	ldr	r1, [r4, #8]
	ldr	r2, .L10+12
	orr	r1, r3, r1
	mov	r0, r5
	ldr	r2, [r2]
	bl	r8a66597_write
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #12]
	ldr	r2, .L10+16
	orr	r1, r3, r1, lsl #10
	ldr	r2, [r2]
	mov	r0, r5
	bl	r8a66597_write
	ldr	r0, [r4, #28]
	bl	make_devsel
	ldr	r1, [r4, #20]
	ldr	r3, .L10+20
	orr	r1, r0, r1
	ldr	r2, [r3]
	mov	r0, r5
	bl	r8a66597_write
	ldr	r3, .L10+24
	mov	r0, r5
	ldr	r1, [r4, #24]
	ldr	r2, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	r8a66597_write
.L3:
	ldr	r2, .L10+28
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L4
	ldr	r2, .L10+32
	ldr	r1, .L10+36
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r1
	orr	r3, r3, r2
	b	.L4
.L11:
	.align	2
.L10:
	.word	ACLRM
	.word	PIPESEL
	.word	R8A66597_DIR
	.word	PIPECFG
	.word	PIPEBUF
	.word	PIPEMAXP
	.word	PIPEPERI
	.word	R8A66597_BULK
	.word	R8A66597_DBLB
	.word	R8A66597_SHTNAK
	.size	pipe_buffer_setting, .-pipe_buffer_setting
	.comm	R8A66597_SHTNAK,4,4
	.comm	R8A66597_DIR,4,4
	.comm	R8A66597_DBLB,4,4
	.comm	R8A66597_BULK,4,4
	.comm	PIPESEL,4,4
	.comm	PIPEPERI,4,4
	.comm	PIPEMAXP,4,4
	.comm	PIPECFG,4,4
	.comm	PIPEBUF,4,4
	.comm	ACLRM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
