	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_i2c_write_u8_verify
_twl4030_i2c_write_u8_verify:           ## @twl4030_i2c_write_u8_verify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$255, -40(%rbp)
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_twl_i2c_write_u8
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_twl_i2c_read_u8
	movq	-40(%rbp), %r9
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpq	%r15, %r9
	je	LBB0_9
	jmp	LBB0_4
LBB0_1:
	movl	$255, %r9d
LBB0_4:
	movl	(%r12), %edi
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_dev_dbg
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_twl_i2c_write_u8
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_twl_i2c_read_u8
	movq	-40(%rbp), %r9
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpq	%r15, %r9
	je	LBB0_9
	jmp	LBB0_8
LBB0_5:
	movq	-40(%rbp), %r9
LBB0_8:
	movl	(%r12), %edi
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write%d[%d,0x%x] wrote %02x but read %02x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_twl4030_i2c_write_u8_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_i2c_write_u8_verify
_twl4030_i2c_write_u8_verify:           ; @twl4030_i2c_write_u8_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	w23, #255
	str	x23, [sp, #8]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_twl_i2c_write_u8
	tbnz	x0, #63, LBB0_3
; %bb.1:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_twl_i2c_read_u8
	ldr	x23, [sp, #8]
	tbnz	x0, #63, LBB0_3
; %bb.2:
	cmp	x23, x19
	b.eq	LBB0_6
LBB0_3:
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	mov	x3, x21
	mov	x4, x20
	mov	x5, x23
	mov	x6, x19
	bl	_dev_dbg
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_twl_i2c_write_u8
	tbnz	x0, #63, LBB0_7
; %bb.4:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_twl_i2c_read_u8
	ldr	x5, [sp, #8]
	tbnz	x0, #63, LBB0_8
; %bb.5:
	cmp	x5, x19
	b.ne	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	x5, [sp, #8]
LBB0_8:
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	mov	x3, x21
	mov	x4, x20
	mov	x6, x19
	bl	_dev_dbg
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write%d[%d,0x%x] wrote %02x but read %02x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_twl4030_i2c_write_u8_verify
.subsections_via_symbols
