	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl28xxu_i2c_xfer
_rtl28xxu_i2c_xfer:                     ## @rtl28xxu_i2c_xfer
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	callq	_i2c_get_adapdata
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	cmpl	$1, %r12d
	je	LBB0_20
## %bb.3:
	cmpl	$2, %r12d
	jne	LBB0_31
## %bb.4:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
LBB0_31:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_36
LBB0_20:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_21
## %bb.30:
	movl	8(%r15), %eax
	addl	%eax, %eax
	movl	%eax, -56(%rbp)
	movq	_CMD_I2C_DA_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r15), %eax
LBB0_29:
	movl	%eax, -48(%rbp)
	movq	16(%r15), %rax
LBB0_14:
	movq	%rax, -40(%rbp)
LBB0_15:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rtl28xxu_ctrl_msg
	movl	%eax, %ebx
LBB0_32:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_35
## %bb.33:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_5:
	testl	%eax, 24(%r15)
	je	LBB0_31
## %bb.6:
	movl	4(%r15), %ecx
	cmpl	$24, %ecx
	jg	LBB0_8
## %bb.7:
	movl	28(%r15), %eax
	cmpl	$25, %eax
	jge	LBB0_8
## %bb.9:
	movl	8(%r15), %edx
	cmpl	$16, %edx
	jne	LBB0_16
## %bb.10:
	movq	16(%r15), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.12:
	shll	$8, %ecx
	orl	$32, %ecx
	movl	%ecx, -56(%rbp)
	movq	_CMD_DEMOD_RD@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	orl	(%rcx), %edx
	movl	%edx, -52(%rbp)
	jmp	LBB0_13
LBB0_21:
	movl	4(%r15), %eax
	cmpl	$23, %eax
	jl	LBB0_22
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_34:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_35:
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r12d
LBB0_36:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	8(%r15), %ecx
	cmpl	$16, %ecx
	jne	LBB0_26
## %bb.23:
	movq	16(%r15), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_24
## %bb.25:
	shll	$8, %edx
	orl	$32, %edx
	movl	%edx, -56(%rbp)
	movq	_CMD_DEMOD_WR@GOTPCREL(%rip), %rdx
	movl	(%rbx), %esi
	orl	(%rdx), %esi
	movl	%esi, -52(%rbp)
	decl	%eax
	movl	%eax, -48(%rbp)
	addq	$4, %rcx
	movq	%rcx, -40(%rbp)
	jmp	LBB0_15
LBB0_26:
	cmpl	$0, 4(%rbx)
	je	LBB0_27
## %bb.28:
	addl	%ecx, %ecx
	movl	%ecx, -56(%rbp)
	movq	_CMD_I2C_DA_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	jmp	LBB0_29
LBB0_24:
	movl	4(%rcx), %eax
	movl	%eax, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_27:
	movq	16(%r15), %rdx
	movl	(%rdx), %esi
	shll	$8, %esi
	addl	%ecx, %ecx
	orl	%esi, %ecx
	movl	%ecx, -56(%rbp)
	movq	_CMD_I2C_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	decl	%eax
	movl	%eax, -48(%rbp)
	addq	$4, %rdx
	movq	%rdx, -40(%rbp)
	jmp	LBB0_15
LBB0_16:
	cmpl	$1, %ecx
	jg	LBB0_18
## %bb.17:
	movq	16(%r15), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	addl	%edx, %edx
	orl	%ecx, %edx
	movl	%edx, -56(%rbp)
	movq	_CMD_I2C_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	jmp	LBB0_13
LBB0_18:
	addl	%edx, %edx
	movl	%edx, -56(%rbp)
	movq	_CMD_I2C_DA_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	%ecx, -48(%rbp)
	movq	16(%r15), %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rtl28xxu_ctrl_msg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.19:
	movl	8(%r15), %eax
	addl	%eax, %eax
	movl	%eax, -56(%rbp)
	movq	_CMD_I2C_DA_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	28(%r15), %eax
LBB0_13:
	movl	%eax, -48(%rbp)
	movq	40(%r15), %rax
	jmp	LBB0_14
LBB0_11:
	movl	(%rbx), %eax
	movq	40(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CMD_DEMOD_RD,4,2               ## @CMD_DEMOD_RD
	.comm	_CMD_I2C_RD,4,2                 ## @CMD_I2C_RD
	.comm	_CMD_I2C_DA_WR,8,3              ## @CMD_I2C_DA_WR
	.comm	_CMD_I2C_DA_RD,8,3              ## @CMD_I2C_DA_RD
	.comm	_CMD_DEMOD_WR,4,2               ## @CMD_DEMOD_WR
	.comm	_CMD_I2C_WR,4,2                 ## @CMD_I2C_WR
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_rtl28xxu_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl28xxu_i2c_xfer
_rtl28xxu_i2c_xfer:                     ; @rtl28xxu_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	bl	_i2c_get_adapdata
	mov	x20, x0
	ldr	x23, [x0, #8]
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_5
; %bb.1:
	cmp	w19, #1
	b.eq	LBB0_6
; %bb.2:
	cmp	w19, #2
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x21]
Lloh0:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_13
LBB0_4:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_6:
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.7:
	ldp	w9, w8, [x21, #4]
	lsl	w8, w8, #1
Lloh12:
	adrp	x10, _CMD_I2C_DA_RD@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CMD_I2C_DA_RD@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	stp	w8, w10, [sp, #8]
	str	w9, [sp, #16]
LBB0_8:
	ldr	x8, [x21, #16]
LBB0_9:
	str	x8, [sp, #24]
LBB0_10:
	add	x1, sp, #8
	mov	x0, x20
	bl	_rtl28xxu_ctrl_msg
	mov	x22, x0
LBB0_11:
Lloh15:
	adrp	x8, _EPIPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_22
; %bb.12:
Lloh18:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
	ldr	w9, [x21, #24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.14:
	ldr	w9, [x21, #4]
	cmp	w9, #24
	b.gt	LBB0_20
; %bb.15:
	ldr	w8, [x21, #28]
	cmp	w8, #25
	b.ge	LBB0_20
; %bb.16:
	ldr	w10, [x21, #8]
	cmp	w10, #16
	b.ne	LBB0_31
; %bb.17:
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	cbz	w9, LBB0_36
; %bb.18:
	mov	w10, #32
	bfi	w10, w9, #8, #24
	str	w10, [sp, #8]
Lloh20:
	adrp	x9, _CMD_DEMOD_RD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CMD_DEMOD_RD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [x23]
	orr	w9, w10, w9
	str	w9, [sp, #12]
	b	LBB0_35
LBB0_19:
	ldr	w8, [x21, #4]
	cmp	w8, #23
	b.lt	LBB0_24
LBB0_20:
Lloh23:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_22:
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w0, w19, w22, eq
LBB0_23:
	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
	add	sp, sp, #96
	ret
LBB0_24:
	ldr	w9, [x21, #8]
	cmp	w9, #16
	b.ne	LBB0_27
; %bb.25:
	ldr	x9, [x21, #16]
	ldr	w10, [x9]
	cbz	w10, LBB0_29
; %bb.26:
	mov	w11, #32
	bfi	w11, w10, #8, #24
	str	w11, [sp, #8]
Lloh25:
	adrp	x10, _CMD_DEMOD_WR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _CMD_DEMOD_WR@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	ldr	w11, [x23]
	orr	w10, w11, w10
	sub	w8, w8, #1
	stp	w10, w8, [sp, #12]
	add	x8, x9, #4
	b	LBB0_9
LBB0_27:
	ldr	w10, [x23, #4]
	cbz	w10, LBB0_30
; %bb.28:
	lsl	w9, w9, #1
Lloh28:
	adrp	x10, _CMD_I2C_DA_WR@GOTPAGE
Lloh29:
	ldr	x10, [x10, _CMD_I2C_DA_WR@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	stp	w9, w10, [sp, #8]
	str	w8, [sp, #16]
	b	LBB0_8
LBB0_29:
	mov	w22, #0
	ldr	w8, [x9, #4]
	str	w8, [x23]
	b	LBB0_11
LBB0_30:
	ldr	x10, [x21, #16]
	ldr	w11, [x10], #4
	lsl	w11, w11, #8
	orr	w9, w11, w9, lsl #1
Lloh31:
	adrp	x11, _CMD_I2C_WR@GOTPAGE
Lloh32:
	ldr	x11, [x11, _CMD_I2C_WR@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	stp	w9, w11, [sp, #8]
	sub	w8, w8, #1
	str	w8, [sp, #16]
	str	x10, [sp, #24]
	b	LBB0_10
LBB0_31:
	cmp	w9, #1
	b.gt	LBB0_33
; %bb.32:
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	lsl	w9, w9, #8
	orr	w9, w9, w10, lsl #1
Lloh34:
	adrp	x10, _CMD_I2C_RD@GOTPAGE
Lloh35:
	ldr	x10, [x10, _CMD_I2C_RD@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #8]
	b	LBB0_35
LBB0_33:
	lsl	w8, w10, #1
Lloh37:
	adrp	x10, _CMD_I2C_DA_WR@GOTPAGE
Lloh38:
	ldr	x10, [x10, _CMD_I2C_DA_WR@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	stp	w8, w10, [sp, #8]
	str	w9, [sp, #16]
	ldr	x8, [x21, #16]
	str	x8, [sp, #24]
	add	x1, sp, #8
	mov	x0, x20
	bl	_rtl28xxu_ctrl_msg
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.34:
	ldr	w8, [x21, #8]
	lsl	w8, w8, #1
Lloh40:
	adrp	x9, _CMD_I2C_DA_RD@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CMD_I2C_DA_RD@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	stp	w8, w9, [sp, #8]
	ldr	w8, [x21, #28]
LBB0_35:
	str	w8, [sp, #16]
	ldr	x8, [x21, #40]
	b	LBB0_9
LBB0_36:
	mov	w22, #0
	ldr	w8, [x23]
	ldr	x9, [x21, #40]
	str	w8, [x9]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CMD_DEMOD_RD,4,2               ; @CMD_DEMOD_RD
	.comm	_CMD_I2C_RD,4,2                 ; @CMD_I2C_RD
	.comm	_CMD_I2C_DA_WR,8,3              ; @CMD_I2C_DA_WR
	.comm	_CMD_I2C_DA_RD,8,3              ; @CMD_I2C_DA_RD
	.comm	_CMD_DEMOD_WR,4,2               ; @CMD_DEMOD_WR
	.comm	_CMD_I2C_WR,4,2                 ; @CMD_I2C_WR
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_rtl28xxu_i2c_xfer
.subsections_via_symbols
