	.file	"extr_amdsmb.c_amdsmb_writeb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"amdsmb: WRITEB to 0x%x, cmd=0x%x, byte=0x%x, error=0x%x\n"
	.text
	.p2align 4
	.type	amdsmb_writeb, @function
amdsmb_writeb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	movsx	r14d, r14b
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movsx	r13d, r13b
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	device_get_softc@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	AMDSMB_LOCK@PLT
	mov	esi, DWORD PTR SMB_CMD[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	amdsmb_ec_write@PLT
	mov	esi, DWORD PTR SMB_DATA[rip]
	mov	edx, r14d
	mov	rdi, rbp
	call	amdsmb_ec_write@PLT
	mov	esi, DWORD PTR SMB_ADDR[rip]
	mov	edx, r15d
	mov	rdi, rbp
	call	amdsmb_ec_write@PLT
	mov	esi, DWORD PTR SMB_PRTCL[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR SMB_PRTCL_WRITE[rip]
	or	edx, DWORD PTR SMB_PRTCL_BYTE_DATA[rip]
	call	amdsmb_ec_write@PLT
	mov	rdi, rbp
	call	amdsmb_wait@PLT
	mov	ecx, r14d
	mov	edx, r13d
	mov	esi, r15d
	mov	r8d, eax
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	printf@PLT
	mov	edi, eax
	call	AMDSMB_DEBUG@PLT
	mov	rdi, rbp
	call	AMDSMB_UNLOCK@PLT
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	amdsmb_writeb, .-amdsmb_writeb
	.comm	SMB_PRTCL_WRITE,4,4
	.comm	SMB_PRTCL_BYTE_DATA,4,4
	.comm	SMB_PRTCL,4,4
	.comm	SMB_DATA,4,4
	.comm	SMB_CMD,4,4
	.comm	SMB_ADDR,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_amdsmb.c_amdsmb_writeb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"amdsmb: WRITEB to 0x%x, cmd=0x%x, byte=0x%x, error="
	.ascii	"0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdsmb_writeb, %function
amdsmb_writeb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r8, r3
	mov	r7, r2
	bl	device_get_softc
	mov	r4, r0
	bl	AMDSMB_LOCK
	ldr	r3, .L4
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r4
	bl	amdsmb_ec_write
	ldr	r3, .L4+4
	mov	r2, r8
	ldr	r1, [r3]
	mov	r0, r4
	bl	amdsmb_ec_write
	ldr	r3, .L4+8
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	amdsmb_ec_write
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+20
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	amdsmb_ec_write
	mov	r0, r4
	bl	amdsmb_wait
	mov	r5, r0
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	str	r0, [sp]
	ldr	r0, .L4+24
	bl	printf
	bl	AMDSMB_DEBUG
	mov	r0, r4
	bl	AMDSMB_UNLOCK
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	SMB_CMD
	.word	SMB_DATA
	.word	SMB_ADDR
	.word	SMB_PRTCL_WRITE
	.word	SMB_PRTCL_BYTE_DATA
	.word	SMB_PRTCL
	.word	.LC0
	.size	amdsmb_writeb, .-amdsmb_writeb
	.comm	SMB_PRTCL_WRITE,4,4
	.comm	SMB_PRTCL_BYTE_DATA,4,4
	.comm	SMB_PRTCL,4,4
	.comm	SMB_DATA,4,4
	.comm	SMB_CMD,4,4
	.comm	SMB_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
