	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_i2c_send_bytes
_em28xx_i2c_send_bytes:                 ## @em28xx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_em28xx_i2c_timeout
	movq	%rax, %r13
	leal	-65(%r15), %eax
	cmpl	$-65, %eax
	ja	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_2:
	xorl	%esi, %esi
	testl	%ebx, %ebx
	sete	%sil
	orl	$2, %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	callq	*(%r12)
	cmpl	%r15d, %eax
	jne	LBB0_5
## %bb.3:
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$5, %esi
	callq	*8(%r12)
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	cmpl	$16, %eax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 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_10
	jmp	LBB0_16
LBB0_5:
	movl	%eax, %ebx
	movq	16(%r12), %rdi
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_8
LBB0_4:
	movl	%r15d, %ebx
LBB0_16:
	movl	%r14d, %edx
	cmpl	$4, %ebx
	je	LBB0_18
## %bb.17:
	cmpl	$2, %ebx
	jne	LBB0_19
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_21
LBB0_19:
	movq	16(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %r14d
	movl	%r14d, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%r15d, %ebx
	jmp	LBB0_21
LBB0_12:
	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
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_14:
	movq	16(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing to i2c device at 0x%x failed (error=%i)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%i bytes write to i2c device at 0x%x requested, but %i bytes written\n"

	.comm	_EIO,4,2                        ## @EIO
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	"failed to get i2c transfer status from bridge register (error=%i)\n"

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

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

	.no_dead_strip	_em28xx_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 em28xx_i2c_send_bytes
_em28xx_i2c_send_bytes:                 ; @em28xx_i2c_send_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	bl	_em28xx_i2c_timeout
	sub	w8, w21, #65
	cmn	w8, #65
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x23, x0
	ldr	x8, [x22]
	cmp	w24, #0
	mov	w9, #2
	cinc	w1, w9, eq
	mov	x0, x22
	mov	x2, x19
	mov	x3, x20
	mov	x4, x21
	blr	x8
	cmp	w0, w21
	b.ne	LBB0_9
; %bb.3:
	add	x23, x23, x25
	mov	x0, x23
	bl	_time_is_after_jiffies
	cbz	x0, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	mov	x0, x22
	mov	w1, #5
	blr	x8
	cbz	w0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	cmp	w0, #16
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w20, #31, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	mov	x0, x23
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_4
; %bb.8:
	cmp	w20, #4
	b.ne	LBB0_12
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	ldr	x0, [x22, #16]
	tbnz	w20, #31, LBB0_14
; %bb.10:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x19, x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	b	LBB0_16
LBB0_11:
	mov	x20, x21
	cmp	w20, #4
	b.eq	LBB0_13
LBB0_12:
	cmp	w20, #2
	b.ne	LBB0_15
LBB0_13:
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_dprintk
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	mov	x8, x20
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
	b	LBB0_18
LBB0_15:
	ldr	x0, [x22, #16]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
LBB0_16:
	bl	_dev_warn
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	mov	x20, x21
	b	LBB0_18
LBB0_20:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_dprintk
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_21:
	ldr	x0, [x22, #16]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing to i2c device at 0x%x failed (error=%i)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%i bytes write to i2c device at 0x%x requested, but %i bytes written\n"

	.comm	_EIO,4,2                        ; @EIO
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	"failed to get i2c transfer status from bridge register (error=%i)\n"

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

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

	.no_dead_strip	_em28xx_i2c_send_bytes
.subsections_via_symbols
