	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em2800_i2c_send_max4
_em2800_i2c_send_max4:                  ## @em2800_i2c_send_max4
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	leal	-5(%r14), %eax
	xorl	%edi, %edi
	cmpl	$-4, %eax
	setb	%dil
	callq	_BUG_ON
	leal	127(%r14), %r13d
	movb	%r13b, -41(%rbp)
	movb	%bl, -42(%rbp)
	movb	(%r15), %al
	movb	%al, -43(%rbp)
	cmpl	$2, %r14d
	jl	LBB0_4
## %bb.1:
	movb	1(%r15), %al
	movb	%al, -44(%rbp)
	je	LBB0_4
## %bb.2:
	movb	2(%r15), %al
	movb	%al, -45(%rbp)
	cmpl	$4, %r14d
	jb	LBB0_4
## %bb.3:
	movb	3(%r15), %al
	movb	%al, -46(%rbp)
LBB0_4:
	movl	$4, %eax
	subl	%r14d, %eax
	movslq	%eax, %rsi
	leaq	(%rsi,%rbp), %rdx
	addq	$-46, %rdx
	leal	2(%r14), %r15d
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %ecx
	callq	*(%r12)
	cmpl	%r15d, %eax
	jne	LBB0_5
## %bb.6:
	movq	_EM2800_I2C_WRITE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.7:
	addl	$5, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$5, %esi
	callq	*8(%r12)
	cmpl	%r13d, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$5, %edi
	callq	_msleep
	addl	$-5, %ebx
	cmpl	$5, %ebx
	jg	LBB0_8
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_em28xx_warn
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_em28xx_warn
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %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	"writing to i2c device failed (error=%i)\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_EM2800_I2C_WRITE_TIMEOUT,4,2   ## @EM2800_I2C_WRITE_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"i2c write timed out\n"

	.no_dead_strip	_em2800_i2c_send_max4
.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_max4
_em2800_i2c_send_max4:                  ; @em2800_i2c_send_max4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	sub	w8, w3, #5
	cmn	w8, #4
	cset	w0, lo
	bl	_BUG_ON
	add	w23, w19, #127
	strb	w23, [sp, #15]
	strb	w22, [sp, #14]
	ldrb	w8, [x21]
	strb	w8, [sp, #13]
	cmp	w19, #2
	b.lt	LBB0_4
; %bb.1:
	ldrb	w8, [x21, #1]
	strb	w8, [sp, #12]
	b.eq	LBB0_4
; %bb.2:
	ldrb	w8, [x21, #2]
	strb	w8, [sp, #11]
	cmp	w19, #4
	b.lo	LBB0_4
; %bb.3:
	ldrb	w8, [x21, #3]
	strb	w8, [sp, #10]
LBB0_4:
	ldr	x8, [x20]
	mov	w9, #4
	sub	x1, x9, w19, sxtw
	add	x9, sp, #10
	add	x2, x9, x1
	add	w21, w19, #2
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x21
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w21
	b.ne	LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _EM2800_I2C_WRITE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EM2800_I2C_WRITE_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	add	w21, w8, #5
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	w1, #5
	blr	x8
	cmp	w0, w23
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #5
	bl	_msleep
	sub	w21, w21, #5
	cmp	w21, #5
	b.gt	LBB0_7
LBB0_9:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_em28xx_warn
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing to i2c device failed (error=%i)\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_EM2800_I2C_WRITE_TIMEOUT,4,2   ; @EM2800_I2C_WRITE_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"i2c write timed out\n"

	.no_dead_strip	_em2800_i2c_send_max4
.subsections_via_symbols
