	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em2800_i2c_send_bytes
_em2800_i2c_send_bytes:                 ## @em2800_i2c_send_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, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	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, %r12
	leal	-5(%rbx), %eax
	cmpl	$-5, %eax
	ja	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_2:
	leal	127(%rbx), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	%eax, -60(%rbp)
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	movl	%r14d, -64(%rbp)
	movl	(%r13), %eax
	movl	%eax, -68(%rbp)
	cmpl	$2, %ebx
	jb	LBB0_6
## %bb.3:
	movl	4(%r13), %eax
	movl	%eax, -72(%rbp)
	je	LBB0_6
## %bb.4:
	movl	8(%r13), %eax
	movl	%eax, -76(%rbp)
	cmpl	$4, %ebx
	jb	LBB0_6
## %bb.5:
	movl	12(%r13), %eax
	movl	%eax, -80(%rbp)
LBB0_6:
	movl	$4, %esi
	subl	%ebx, %esi
	leaq	-80(,%rsi,4), %rdx
	addq	%rbp, %rdx
	leal	2(%rbx), %r13d
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %ecx
	callq	*(%r15)
	cmpl	%r13d, %eax
	jne	LBB0_14
## %bb.7:
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	leal	147(%rbx), %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$5, %esi
	callq	*8(%r15)
	cmpl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r14d
	cmpl	%r13d, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%r14d, %r14d
	js	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	%r12, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	jne	LBB0_9
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_dprintk
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movl	%eax, %r14d
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r14d, %r14d
	cmovsl	%r14d, %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	callq	_dprintk
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_20:
	movq	16(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	movl	%r14d, %ebx
	jmp	LBB0_18
LBB0_21:
	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 write to 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	"write to i2c device at 0x%x timed out\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_em2800_i2c_send_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_send_bytes
_em2800_i2c_send_bytes:                 ; @em2800_i2c_send_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	bl	_em28xx_i2c_timeout
	sub	w8, w20, #5
	cmn	w8, #5
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x22, x0
	add	w25, w20, #127
	stp	w19, w25, [sp, #32]
	ldr	w8, [x23]
	str	w8, [sp, #28]
	cmp	w20, #2
	b.lo	LBB0_6
; %bb.3:
	ldr	w8, [x23, #4]
	str	w8, [sp, #24]
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x23, #8]
	str	w8, [sp, #20]
	cmp	w20, #4
	b.lo	LBB0_6
; %bb.5:
	ldr	w8, [x23, #12]
	str	w8, [sp, #16]
LBB0_6:
	ldr	x8, [x21]
	mov	w9, #4
	sub	w1, w9, w20
	add	x9, sp, #16
	add	x2, x9, w1, uxtw #2
	add	w24, w20, #2
	mov	x0, x21
	mov	x3, x24
	blr	x8
	cmp	w0, w24
	b.ne	LBB0_14
; %bb.7:
	add	x22, x22, x26
	mov	x0, x22
	bl	_time_is_after_jiffies
	cbz	x0, LBB0_13
; %bb.8:
	add	w24, w20, #147
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	w1, #5
	blr	x8
	cmp	w0, w25
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	cmp	w0, w24
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	tbnz	w23, #31, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	mov	x0, x22
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_9
LBB0_13:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_dprintk
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	mov	x23, x0
	ldr	x0, [x21, #16]
	str	x23, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w23, w23, w8, lt
	b	LBB0_18
LBB0_15:
	mov	x23, x20
	b	LBB0_18
LBB0_16:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x24
	bl	_dprintk
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_18:
	ldr	x8, [sp, #40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	ldr	x0, [x21, #16]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_dev_warn
	b	LBB0_18
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.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 write to 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	"write to i2c device at 0x%x timed out\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_em2800_i2c_send_bytes
.subsections_via_symbols
