	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em2800_i2c_recv_bytes
_em2800_i2c_recv_bytes:                 ## @em2800_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	%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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_em28xx_i2c_timeout
	movq	%rax, %r13
	leal	-5(%rbx), %eax
	cmpl	$-5, %eax
	ja	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_3:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	addl	$131, %ebx
	movl	%ebx, -60(%rbp)
	movl	%r15d, -64(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movl	$4, %esi
	movl	$2, %ecx
	callq	*(%r12)
	cmpl	$2, %eax
	jne	LBB0_20
## %bb.4:
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	addq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	147(%rax), %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$5, %esi
	callq	*8(%r12)
	cmpl	%ebx, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r15d
	cmpl	%r14d, %eax
	je	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r15d, %r15d
	js	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	%r13, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	jne	LBB0_6
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_dprintk
LBB0_11:
	movl	$4, %edx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	subl	%r13d, %edx
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %r8d
	callq	*16(%r12)
	cmpl	%r13d, %eax
	jne	LBB0_21
## %bb.12:
	testl	%r13d, %r13d
	jle	LBB0_25
## %bb.13:
	movl	%r13d, %eax
	cmpl	$8, %r13d
	jae	LBB0_27
## %bb.14:
	xorl	%r9d, %r9d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_15:
	movq	%r9, %rdx
	notq	%rdx
	testb	$1, %al
	je	LBB0_17
## %bb.16:
	movl	%r9d, %esi
	notl	%esi
	addl	%r13d, %esi
	movslq	%esi, %rsi
	movl	-64(%rbp,%rsi,4), %esi
	movl	%esi, (%rcx,%r9,4)
	orq	$1, %r9
LBB0_17:
	addq	%rax, %rdx
	je	LBB0_25
## %bb.18:
	subq	%r9, %rax
	movl	%r9d, %edx
	notl	%edx
	addl	%r13d, %edx
	leaq	(%rcx,%r9,4), %rcx
	addq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rdx
	movl	-64(%rbp,%rdx,4), %edi
	movl	%edi, -4(%rcx,%rsi,4)
	leal	-1(%rdx), %edi
	movslq	%edi, %rdi
	movl	-64(%rbp,%rdi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	addq	$2, %rsi
	addl	$-2, %edx
	cmpq	%rsi, %rax
	jne	LBB0_19
	jmp	LBB0_25
LBB0_20:
	movl	%eax, %r14d
	movq	24(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	testl	%r14d, %r14d
	cmovsl	%r14d, %r13d
	jmp	LBB0_25
LBB0_21:
	movl	%eax, %r14d
	movq	24(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	testl	%r14d, %r14d
	cmovsl	%r14d, %r15d
	jmp	LBB0_24
LBB0_22:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	callq	_dprintk
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_23:
	movq	24(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_24:
	movl	%r15d, %r13d
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.26:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	-1(%rax), %rdx
	leal	-1(%r13), %esi
	movl	%esi, %edi
	subl	%edx, %edi
	xorl	%r9d, %r9d
	cmpl	%esi, %edi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jg	LBB0_15
## %bb.28:
	shrq	$32, %rdx
	jne	LBB0_15
## %bb.29:
	movl	%eax, %r9d
	andl	$-8, %r9d
	leaq	-8(%r9), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_32
## %bb.30:
	movq	%r8, %rdi
	andq	$-2, %rdi
	leal	-9(%r13), %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	leal	8(%rbx), %esi
	movslq	%esi, %rsi
	movdqu	-92(%rbp,%rsi,4), %xmm0
	movdqu	-76(%rbp,%rsi,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm1, (%rcx,%rdx,4)
	movdqu	%xmm0, 16(%rcx,%rdx,4)
	movslq	%ebx, %rbx
	movdqu	-92(%rbp,%rbx,4), %xmm0
	movdqu	-76(%rbp,%rbx,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm1, 32(%rcx,%rdx,4)
	movdqu	%xmm0, 48(%rcx,%rdx,4)
	addq	$16, %rdx
	addl	$-16, %ebx
	addq	$-2, %rdi
	jne	LBB0_31
	jmp	LBB0_33
LBB0_32:
	xorl	%edx, %edx
LBB0_33:
	testb	$1, %r8b
	je	LBB0_35
## %bb.34:
	movl	%edx, %esi
	notl	%esi
	addl	%r13d, %esi
	movslq	%esi, %rsi
	movdqu	-92(%rbp,%rsi,4), %xmm0
	movdqu	-76(%rbp,%rsi,4), %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm1, (%rcx,%rdx,4)
	movdqu	%xmm0, 16(%rcx,%rdx,4)
LBB0_35:
	cmpq	%rax, %r9
	jne	LBB0_15
	jmp	LBB0_25
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to trigger read from i2c address 0x%x (error=%i)\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"R05 returned 0x%02x: I2C ACK error\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"failed to get i2c transfer status from bridge register (error=%i)\n"

L_.str.3:                               ## @.str.3
	.asciz	"read from i2c device at 0x%x timed out\n"

L_.str.4:                               ## @.str.4
	.asciz	"reading from i2c device at 0x%x failed: couldn't get the received message from the bridge (error=%i)\n"

	.no_dead_strip	_em2800_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 em2800_i2c_recv_bytes
_em2800_i2c_recv_bytes:                 ; @em2800_i2c_recv_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	bl	_em28xx_i2c_timeout
	sub	w8, w20, #5
	cmn	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_21
LBB0_3:
	mov	x21, x0
	add	w26, w20, #131
	stp	w22, w26, [sp, #8]
	ldr	x8, [x23]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #4
	mov	w3, #2
	blr	x8
	cmp	w0, #2
	b.ne	LBB0_17
; %bb.4:
	add	x24, x21, x25
	mov	x0, x24
	bl	_time_is_after_jiffies
	cbz	x0, LBB0_10
; %bb.5:
	add	w25, w20, #147
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	mov	x0, x23
	mov	w1, #5
	blr	x8
	cmp	w0, w26
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	cmp	w0, w25
	b.eq	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w21, #31, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	mov	x0, x24
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_6
LBB0_10:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	mov	x2, x22
	bl	_dprintk
LBB0_11:
	ldr	x8, [x23, #16]
	mov	w9, #4
	sub	w2, w9, w20
	add	x3, sp, #8
	mov	x0, x23
	mov	w1, #0
	mov	x4, x20
	blr	x8
	cmp	w0, w20
	b.ne	LBB0_18
; %bb.12:
	mov	w21, w20
	cmp	w20, #0
	b.le	LBB0_21
; %bb.13:
	cmp	w20, #16
	b.hs	LBB0_23
; %bb.14:
	mov	x8, #0
LBB0_15:
	mvn	w9, w8
	add	w9, w9, w20
	add	x10, sp, #8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, w9, sxtw #2]
	str	w11, [x19, x8, lsl #2]
	add	x8, x8, #1
	sub	w9, w9, #1
	cmp	x21, x8
	b.ne	LBB0_16
	b	LBB0_21
LBB0_17:
	mov	x24, x0
	ldr	x0, [x23, #24]
	str	x24, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w24, #0
	csneg	w21, w24, w8, lt
	b	LBB0_21
LBB0_18:
	mov	x21, x0
	ldr	x0, [x23, #24]
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w21, w21, w8, lt
	b	LBB0_21
LBB0_19:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x25
	bl	_dprintk
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_20:
	ldr	x0, [x23, #24]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
LBB0_21:
	ldr	x8, [sp, #24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.22:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_23:
	mov	x8, #0
	sub	x9, x21, #1
	sub	w10, w20, #1
	sub	w11, w10, w9
	cmp	w11, w10
	b.gt	LBB0_15
; %bb.24:
	lsr	x10, x9, #32
	cbnz	x10, LBB0_15
; %bb.25:
	and	x8, x21, #0xfffffff0
	add	x10, x19, #32
	add	x11, sp, #8
	mov	x12, x8
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x11, w9, sxtw #2
	ldur	q0, [x13, #-12]
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	ldur	q1, [x13, #-28]
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	ldur	q2, [x13, #-44]
	rev64.4s	v2, v2
	ext.16b	v2, v2, v2, #8
	ldur	q3, [x13, #-60]
	rev64.4s	v3, v3
	ext.16b	v3, v3, v3, #8
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	sub	w9, w9, #16
	sub	x12, x12, #16
	cbnz	x12, LBB0_26
; %bb.27:
	cmp	x8, x21
	b.ne	LBB0_15
	b	LBB0_21
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to trigger read from i2c address 0x%x (error=%i)\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"R05 returned 0x%02x: I2C ACK error\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"failed to get i2c transfer status from bridge register (error=%i)\n"

l_.str.3:                               ; @.str.3
	.asciz	"read from i2c device at 0x%x timed out\n"

l_.str.4:                               ; @.str.4
	.asciz	"reading from i2c device at 0x%x failed: couldn't get the received message from the bridge (error=%i)\n"

	.no_dead_strip	_em2800_i2c_recv_bytes
.subsections_via_symbols
