	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bit_doAddress
_bit_doAddress:                         ## @bit_doAddress
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	(%rsi), %r14d
	movq	_I2C_M_IGNORE_NAK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
	xorl	%edx, %edx
	testw	%r14w, %bx
	jne	LBB0_2
## %bb.1:
	movl	(%rdi), %edx
LBB0_2:
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movl	4(%r13), %r15d
	testw	%r14w, (%rax)
	je	LBB0_15
## %bb.3:
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shrl	$7, %r15d
	andb	$3, %r15b
	leal	-16(%r15), %eax
	leaq	4(%rdi), %rsi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movzbl	%al, %r12d
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_bit_dbg
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_try_address
	cmpl	$1, %eax
	je	LBB0_7
## %bb.4:
	movl	%ebx, %eax
	andl	%r14d, %eax
	testw	%ax, %ax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_15:
	addb	%r15b, %r15b
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	andw	%r14w, %ax
	setne	%al
	orb	%r15b, %al
	movq	_I2C_M_REV_DIR_ADDR@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	andw	%r14w, %cx
	setne	%cl
	xorb	%al, %cl
	movzbl	%cl, %esi
	callq	_try_address
	xorl	%r12d, %r12d
	cmpl	$1, %eax
	je	LBB0_19
## %bb.16:
	andl	%r14d, %ebx
	testw	%bx, %bx
	jne	LBB0_19
## %bb.17:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_7:
	movl	4(%r13), %esi
	andl	$127, %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_i2c_outb
	cmpl	$1, %eax
	je	LBB0_10
## %bb.8:
	movl	%ebx, %eax
	andl	%r14d, %eax
	testw	%ax, %ax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_11
## %bb.12:
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %r14
	xorl	%r12d, %r12d
	movl	$3, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bit_dbg
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_repstart
	orb	$-15, %r15b
	movzbl	%r15b, %esi
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_try_address
	cmpl	$1, %eax
	je	LBB0_19
## %bb.13:
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	testw	%bx, %bx
	jne	LBB0_19
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_IGNORE_NAK,2,1           ## @I2C_M_IGNORE_NAK
	.comm	_I2C_M_TEN,2,1                  ## @I2C_M_TEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"addr0: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"died at extended address code\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.2:                               ## @.str.2
	.asciz	"died at 2nd address code\n"

	.comm	_I2C_M_RD,2,1                   ## @I2C_M_RD
L_.str.3:                               ## @.str.3
	.asciz	"emitting repeated start condition\n"

L_.str.4:                               ## @.str.4
	.asciz	"died at repeated address code\n"

	.comm	_I2C_M_REV_DIR_ADDR,2,1         ## @I2C_M_REV_DIR_ADDR
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_bit_doAddress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bit_doAddress
_bit_doAddress:                         ; @bit_doAddress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x19, x0
	ldrh	w26, [x1]
Lloh0:
	adrp	x8, _I2C_M_IGNORE_NAK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_IGNORE_NAK@GOTPAGEOFF]
	ldrh	w8, [x8]
	ands	w25, w8, w26
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	ldr	w20, [x19]
LBB0_3:
Lloh2:
	adrp	x8, _I2C_M_TEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_M_TEN@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldr	w27, [x23, #4]
	tst	w8, w26
	b.eq	LBB0_8
; %bb.4:
	ldr	x22, [x19, #8]
	mov	w8, #-16
	bfxil	w8, w27, #7, #2
	add	x21, x19, #4
	and	w24, w8, #0xff
	and	x8, x8, #0xff
	str	x8, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	mov	x1, x21
	bl	_bit_dbg
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_try_address
	cmp	w0, #1
	ccmp	w25, #0, #0, ne
	b.eq	LBB0_10
; %bb.5:
	ldr	w8, [x23, #4]
	and	w1, w8, #0x7f
	mov	x0, x19
	bl	_i2c_outb
	cmp	w0, #1
	b.eq	LBB0_13
; %bb.6:
	cbnz	w25, LBB0_13
; %bb.7:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w26
	cset	w8, ne
Lloh10:
	adrp	x9, _I2C_M_REV_DIR_ADDR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I2C_M_REV_DIR_ADDR@GOTPAGEOFF]
	bfi	w8, w27, #1, #31
	ldrh	w9, [x9]
	tst	w9, w26
	cset	w9, ne
	eor	w8, w8, w9
	and	w1, w8, #0xff
	mov	x0, x19
	mov	x2, x20
	bl	_try_address
	cmp	w0, #1
	ccmp	w25, #0, #0, ne
	b.ne	LBB0_17
; %bb.9:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x21
	bl	_dev_err
Lloh16:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_13:
Lloh18:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_17
; %bb.14:
	ubfx	w23, w27, #7, #2
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x1, x21
	bl	_bit_dbg
	mov	x0, x22
	bl	_i2c_repstart
	mov	w8, #241
	orr	w1, w23, w8
	mov	x0, x19
	mov	x2, x20
	bl	_try_address
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.15:
	cbnz	w25, LBB0_18
; %bb.16:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_IGNORE_NAK,2,1           ; @I2C_M_IGNORE_NAK
	.comm	_I2C_M_TEN,2,1                  ; @I2C_M_TEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"addr0: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"died at extended address code\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.2:                               ; @.str.2
	.asciz	"died at 2nd address code\n"

	.comm	_I2C_M_RD,2,1                   ; @I2C_M_RD
l_.str.3:                               ; @.str.3
	.asciz	"emitting repeated start condition\n"

l_.str.4:                               ; @.str.4
	.asciz	"died at repeated address code\n"

	.comm	_I2C_M_REV_DIR_ADDR,2,1         ; @I2C_M_REV_DIR_ADDR
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_bit_doAddress
.subsections_via_symbols
