	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_find_address
_usb_find_address:                      ## @usb_find_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movzwl	(%rsi), %r13d
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movl	4(%rsi), %ebx
	testw	%r13w, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	shrl	$7, %ebx
	andb	$3, %bl
	leal	-16(%rbx), %r14d
	movzbl	%r14b, %esi
	movq	%r12, %rdi
	movl	%edx, %r15d
	callq	_try_write_address
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.4:
	movl	%r15d, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testw	%r13w, (%rax)
	je	LBB0_12
## %bb.5:
	orb	$-15, %bl
	movzbl	%bl, %esi
	movq	%r12, %rdi
	callq	_try_read_address
	cmpl	$1, %eax
	je	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	addb	%bl, %bl
	movq	_I2C_M_RD@GOTPCREL(%rip), %rsi
	movzwl	(%rsi), %eax
	andw	%r13w, %ax
	setne	%al
	orb	%bl, %al
	movb	%al, (%rcx)
	testw	%r13w, (%rsi)
	je	LBB0_9
## %bb.8:
	movzbl	%al, %esi
	movq	%r12, %rdi
	callq	_try_read_address
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_9:
	movzbl	%al, %esi
	movq	%r12, %rdi
	callq	_try_write_address
LBB0_10:
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	je	LBB0_12
LBB0_11:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_TEN,2,1                  ## @I2C_M_TEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"died at extended address code,\twhile writing\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_I2C_M_RD,2,1                   ## @I2C_M_RD
L_.str.1:                               ## @.str.1
	.asciz	"died at extended address code, while reading\n"

	.no_dead_strip	_usb_find_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_find_address
_usb_find_address:                      ; @usb_find_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	ldrh	w22, [x1]
Lloh0:
	adrp	x8, _I2C_M_TEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_TEN@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldr	w23, [x1, #4]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.1:
	mov	w24, #-16
	bfxil	w24, w23, #7, #2
	and	w1, w24, #0xff
	mov	x0, x19
	mov	x2, x20
	bl	_try_write_address
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	strb	w24, [x21]
Lloh2:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.3:
	ubfx	w8, w23, #7, #2
	mov	w9, #241
	orr	w1, w8, w9
	mov	x0, x19
	mov	x2, x20
	bl	_try_read_address
	cmp	w0, #1
	b.eq	LBB0_11
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	ldrh	w8, [x9]
	tst	w8, w22
	cset	w8, ne
	bfi	w8, w23, #1, #31
	strb	w8, [x21]
	ldrh	w9, [x9]
	and	w1, w8, #0xff
	mov	x0, x19
	mov	x2, x20
	tst	w9, w22
	b.eq	LBB0_10
; %bb.6:
	bl	_try_read_address
	cmp	w0, #1
	b.ne	LBB0_9
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh10:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	bl	_try_write_address
	cmp	w0, #1
	b.ne	LBB0_9
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_TEN,2,1                  ; @I2C_M_TEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"died at extended address code,\twhile writing\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_I2C_M_RD,2,1                   ; @I2C_M_RD
l_.str.1:                               ; @.str.1
	.asciz	"died at extended address code, while reading\n"

	.no_dead_strip	_usb_find_address
.subsections_via_symbols
