	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_i2c_xfer
_em28xx_i2c_xfer:                       ## @em28xx_i2c_xfer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	-96(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_33
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	leaq	(%r14,%r14,2), %r15
	movl	(%r12,%r15,8), %ebx
	addl	%ebx, %ebx
	movl	(%r13), %eax
	andl	4(%r12,%r15,8), %eax
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rdx
	movl	8(%r12,%r15,8), %r9d
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rcx
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dprintk2
	movl	8(%r12,%r15,8), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rbx
	leaq	(%r12,%r15,8), %r13
	addq	$4, %r13
	movl	(%rbx), %eax
	testl	%eax, (%r13)
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	movq	16(%r12,%r15,8), %rdx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_em2800_i2c_recv_bytes
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	callq	_em2800_i2c_check_for_device
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_i2c_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r15,8), %rbx
	addq	$16, %rbx
	xorl	%r12d, %r12d
	leaq	L_.str.6(%rip), %r14
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	incq	%r12
	movslq	4(%r13), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_em28xx_i2c_recv_bytes
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movq	_i2c_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_28
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 4(%r13)
	jle	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r15,8), %r15
	addq	$16, %r15
	xorl	%ebx, %ebx
	leaq	L_.str.6(%rip), %r14
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jns	LBB0_30
	jmp	LBB0_34
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	callq	_em28xx_i2c_check_for_device
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	testl	%eax, %eax
	jns	LBB0_30
	jmp	LBB0_8
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rdi)
	movq	16(%r12,%r15,8), %rdx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_em2800_i2c_send_bytes
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	sete	%r8b
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_em28xx_i2c_send_bytes
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	testl	%ecx, %ecx
	js	LBB0_34
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_i2c_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_32
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_33:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_36
LBB0_34:
	leaq	L_.str.8(%rip), %rsi
	movl	$2, %edi
	movl	%ecx, %ebx
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_dprintk2
	jmp	LBB0_35
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	%ecx, %ebx
	callq	_dprintk2
LBB0_35:
	movl	%ebx, %eax
LBB0_36:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s addr=%x len=%d:"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
L_.str.1:                               ## @.str.1
	.asciz	"read"

L_.str.2:                               ## @.str.2
	.asciz	"write"

L_.str.3:                               ## @.str.3
	.asciz	"stop"

L_.str.4:                               ## @.str.4
	.asciz	"nonstop"

L_.str.5:                               ## @.str.5
	.asciz	" no device\n"

	.comm	_i2c_debug,4,2                  ## @i2c_debug
L_.str.6:                               ## @.str.6
	.asciz	" %02x"

L_.str.7:                               ## @.str.7
	.asciz	"\n"

L_.str.8:                               ## @.str.8
	.asciz	" ERROR: %i\n"

	.no_dead_strip	_em28xx_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_i2c_xfer
_em28xx_i2c_xfer:                       ; @em28xx_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	subs	w26, w2, #1
	b.lt	LBB0_29
; %bb.1:
	mov	x20, x1
	mov	x27, #0
	ldr	x21, [x0]
	str	w2, [sp, #36]                   ; 4-byte Folded Spill
	mov	w8, w2
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w19, #24
Lloh0:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str.6@PAGE
Lloh3:
	add	x24, x24, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.eq	LBB0_30
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mul	x8, x27, x19
	ldr	w9, [x20, x8]
	add	x23, x20, x8
	lsl	w25, w9, #1
	mov	x22, x23
	ldr	w8, [x22, #4]!
	ldr	w9, [x10]
	tst	w9, w8
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x8, x9, x8, eq
	cmp	x27, x26
Lloh8:
	adrp	x9, l_.str.4@PAGE
Lloh9:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh10:
	adrp	x11, l_.str.3@PAGE
Lloh11:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x9, x11, x9, eq
	mov	x28, x10
	ldr	w10, [x23, #8]!
	stp	x25, x10, [sp, #16]
	stp	x8, x9, [sp]
	mov	w0, #2
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintk2
	ldr	w3, [x23]
	cbz	w3, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	madd	x22, x27, x19, x20
	ldr	x2, [x22, #16]!
	mov	x0, x21
	mov	x1, x25
                                        ; kill: def $w3 killed $w3 killed $x3
	cbz	x8, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_em2800_i2c_recv_bytes
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_em2800_i2c_check_for_device
	b	LBB0_22
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x8, _i2c_debug@GOTPAGE
Lloh15:
	ldr	x8, [x8, _i2c_debug@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #2
	ccmp	w3, #1, #8, ge
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	madd	x8, x27, x19, x20
	add	x19, x8, #16
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	w8, [x8, x22, lsl #2]
	str	x8, [sp]
	mov	x0, x24
	bl	_printk
	add	x22, x22, #1
	ldrsw	x3, [x23]
	cmp	x22, x3
	b.lt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #24
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	madd	x9, x27, x19, x20
	ldr	x2, [x9, #16]
	cbz	x8, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x25
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_em2800_i2c_send_bytes
	b	LBB0_24
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_em28xx_i2c_recv_bytes
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
Lloh17:
	adrp	x8, _i2c_debug@GOTPAGE
Lloh18:
	ldr	x8, [x8, _i2c_debug@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #2
Lloh20:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh21:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
	b.lt	LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	w8, [x8, x19, lsl #2]
	str	x8, [sp]
	mov	x0, x24
	bl	_printk
	add	x19, x19, #1
	ldrsw	x8, [x23]
	cmp	x19, x8
	b.lt	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #24
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_em28xx_i2c_check_for_device
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
Lloh22:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh23:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
	tbz	w0, #31, LBB0_27
	b	LBB0_32
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x27, x26
	cset	w4, eq
	mov	x0, x21
	mov	x1, x25
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_em28xx_i2c_send_bytes
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh24:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh25:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w25, #31, LBB0_31
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x8, _i2c_debug@GOTPAGE
Lloh27:
	ldr	x8, [x8, _i2c_debug@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printk
Lloh31:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh32:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
	b	LBB0_2
LBB0_29:
	mov	w25, #0
	b	LBB0_34
LBB0_30:
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_34
LBB0_31:
	str	x25, [sp]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_33:
	mov	w0, #2
	bl	_dprintk2
LBB0_34:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s addr=%x len=%d:"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
l_.str.1:                               ; @.str.1
	.asciz	"read"

l_.str.2:                               ; @.str.2
	.asciz	"write"

l_.str.3:                               ; @.str.3
	.asciz	"stop"

l_.str.4:                               ; @.str.4
	.asciz	"nonstop"

l_.str.5:                               ; @.str.5
	.asciz	" no device\n"

	.comm	_i2c_debug,4,2                  ; @i2c_debug
l_.str.6:                               ; @.str.6
	.asciz	" %02x"

l_.str.7:                               ; @.str.7
	.asciz	"\n"

l_.str.8:                               ; @.str.8
	.asciz	" ERROR: %i\n"

	.no_dead_strip	_em28xx_i2c_xfer
.subsections_via_symbols
