	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_address
_do_address:                            ## @do_address
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_SGI_I2C_NOT_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*24(%rbx)
LBB0_2:
	movl	8(%rbx), %edi
	callq	*(%rbx)
	movq	_SGI_I2C_NOT_IDLE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_force_idle
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	(%r12), %ecx
LBB0_5:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	setne	%r12b
	movl	8(%rbx), %edi
	movq	_SGI_I2C_HOLD_BUS@GOTPCREL(%rip), %rax
	movq	_SGI_I2C_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rax), %esi
	orl	%ecx, %esi
	callq	*24(%rbx)
	orl	%r14d, %r12d
	movl	8(%rbx), %edi
	movl	%r12d, %esi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	callq	_wait_ack
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGI_I2C_NOT_IDLE,4,2           ## @SGI_I2C_NOT_IDLE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SGI_I2C_HOLD_BUS,4,2           ## @SGI_I2C_HOLD_BUS
	.comm	_SGI_I2C_WRITE,4,2              ## @SGI_I2C_WRITE
	.no_dead_strip	_do_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_address
_do_address:                            ; @do_address
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SGI_I2C_NOT_IDLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SGI_I2C_NOT_IDLE@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	blr	x8
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x19, #8]
	blr	x8
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_force_idle
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x22]
LBB0_5:
	cmp	w21, #0
	cset	w21, ne
	ldr	x9, [x19, #24]
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x10, _SGI_I2C_HOLD_BUS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SGI_I2C_HOLD_BUS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x11, _SGI_I2C_WRITE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SGI_I2C_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w10, w11, w10
	orr	w1, w10, w8
	blr	x9
	orr	w1, w21, w20
	ldr	x8, [x19, #16]
	ldr	w0, [x19, #8]
	blr	x8
	mov	x0, x19
	bl	_wait_ack
	cbz	x0, LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SGI_I2C_NOT_IDLE,4,2           ; @SGI_I2C_NOT_IDLE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SGI_I2C_HOLD_BUS,4,2           ; @SGI_I2C_HOLD_BUS
	.comm	_SGI_I2C_WRITE,4,2              ; @SGI_I2C_WRITE
	.no_dead_strip	_do_address
.subsections_via_symbols
