	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_i2c_recv_bytes
_em28xx_i2c_recv_bytes:                 ## @em28xx_i2c_recv_bytes
	.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	%ecx, %ebx
	leal	-65(%rbx), %eax
	cmpl	$-65, %eax
	ja	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	%rdx, %rcx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$2, %esi
	movl	%r14d, %edx
	movl	%ebx, %r8d
	callq	*(%rdi)
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	movl	$5, %esi
	callq	*8(%r15)
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %r12d
	js	LBB0_11
## %bb.6:
	cmpl	$2, %r12d
	je	LBB0_14
## %bb.7:
	cmpl	$4, %r12d
	je	LBB0_14
## %bb.8:
	cmpl	$16, %r12d
	jne	LBB0_15
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movl	%eax, %r12d
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_12
LBB0_11:
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_12:
	movl	%r12d, %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movq	16(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading from i2c device at 0x%x failed (error=%i)\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get i2c transfer status from bridge register (error=%i)\n"

L_.str.2:                               ## @.str.2
	.asciz	"I2C ACK error on writing to addr 0x%02x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"write to i2c device at 0x%x timed out (status=%i)\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.4:                               ## @.str.4
	.asciz	"write to i2c device at 0x%x failed with unknown error (status=%i)\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_em28xx_i2c_recv_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_i2c_recv_bytes
_em28xx_i2c_recv_bytes:                 ; @em28xx_i2c_recv_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	sub	w8, w3, #65
	cmn	w8, #65
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_3:
	mov	x3, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	mov	w1, #2
	mov	x2, x19
	mov	x4, x20
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	w1, #5
	blr	x8
	cbz	w0, LBB0_13
; %bb.5:
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	cmp	w22, #2
	b.eq	LBB0_14
; %bb.7:
	cmp	w22, #4
	b.eq	LBB0_14
; %bb.8:
	cmp	w22, #16
	b.ne	LBB0_15
; %bb.9:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_dprintk
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	mov	x22, x0
	ldr	x0, [x21, #16]
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	b	LBB0_12
LBB0_11:
	ldr	x0, [x21, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
LBB0_12:
	bl	_dev_warn
	mov	x20, x22
LBB0_13:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_14:
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_dprintk
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	ldr	x0, [x21, #16]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading from i2c device at 0x%x failed (error=%i)\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get i2c transfer status from bridge register (error=%i)\n"

l_.str.2:                               ; @.str.2
	.asciz	"I2C ACK error on writing to addr 0x%02x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"write to i2c device at 0x%x timed out (status=%i)\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.4:                               ; @.str.4
	.asciz	"write to i2c device at 0x%x failed with unknown error (status=%i)\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_em28xx_i2c_recv_bytes
.subsections_via_symbols
