	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_generic_read_write
_af9005_generic_read_write:             ## @af9005_generic_read_write
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%r9d, %r9d
	jle	LBB0_3
## %bb.1:
	movl	%r9d, %r15d
	cmpl	$9, %r9d
	jb	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_45
LBB0_5:
	movq	%r8, %r14
	movl	%ecx, %r13d
	movl	%esi, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r12), %rcx
	movq	$14, (%rcx)
	movq	_AF9005_REGISTER_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movl	$12, 12(%rcx)
	movl	8(%r12), %r10d
	leal	1(%r10), %eax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%r12)
	movl	%r10d, 16(%rcx)
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, 20(%rcx)
	movzbl	%bl, %eax
	movl	%eax, 24(%rcx)
	movq	_AF9005_OFDM_REG@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_AF9005_CMD_OFDM_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_AF9005_CMD_TUNER@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r8d
	cmpl	$2, %r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jb	LBB0_10
## %bb.9:
	movq	_AF9005_CMD_BURST@GOTPCREL(%rip), %rax
	movq	_AF9005_CMD_AUTOINC@GOTPCREL(%rip), %rdx
	leal	-8(,%r15,8), %esi
	orl	%esi, %r8d
	orl	(%rax), %r8d
	orl	(%rdx), %r8d
LBB0_10:
	orl	%r12d, %r8d
	movq	_AF9005_CMD_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.11:
	movl	%r15d, %edx
	cmpl	$8, %r15d
	jb	LBB0_12
## %bb.15:
	movq	%rcx, %rax
	subq	%r14, %rax
	addq	$32, %rax
	cmpq	$32, %rax
	jae	LBB0_17
LBB0_12:
	xorl	%esi, %esi
LBB0_25:
	movq	%rsi, %rax
	notq	%rax
	addq	%rdx, %rax
	movq	%rdx, %rdi
	andq	$3, %rdi
	je	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %ebx
	movl	%ebx, 32(%rcx,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_26
LBB0_27:
	cmpq	$3, %rax
	jb	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %eax
	movl	%eax, 32(%rcx,%rsi,4)
	movl	4(%r14,%rsi,4), %eax
	movl	%eax, 36(%rcx,%rsi,4)
	movl	8(%r14,%rsi,4), %eax
	movl	%eax, 40(%rcx,%rsi,4)
	movl	12(%r14,%rsi,4), %eax
	movl	%eax, 44(%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_28
	jmp	LBB0_29
LBB0_13:
	movq	_AF9005_TUNER_REG@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_29
## %bb.14:
	movl	(%r14), %eax
	movl	%eax, 32(%rcx)
LBB0_29:
	movl	%r8d, 28(%rcx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movl	$16, %edx
	movl	$17, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.30:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	movq	_AF9005_REGISTER_RW_ACK@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_38
## %bb.31:
	cmpl	$13, 12(%rax)
	jne	LBB0_39
## %bb.32:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, 16(%rax)
	jne	LBB0_40
## %bb.33:
	cmpl	$1, 64(%rax)
	jne	LBB0_41
## %bb.34:
	movq	_AF9005_CMD_READ@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	%r12d, (%rcx)
	jne	LBB0_43
## %bb.35:
	testl	%r15d, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_44
## %bb.36:
	movl	%r15d, %ecx
	cmpl	$8, %r15d
	jb	LBB0_37
## %bb.46:
	movq	%r14, %rdx
	subq	%rax, %rdx
	addq	$-32, %rdx
	cmpq	$32, %rdx
	jae	LBB0_48
LBB0_37:
	xorl	%edx, %edx
LBB0_56:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%rcx, %rsi
	movq	%rcx, %rdi
	andq	$3, %rdi
	je	LBB0_58
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%rax,%rdx,4), %ebx
	movl	%ebx, (%r14,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_57
LBB0_58:
	xorl	%ebx, %ebx
	cmpq	$3, %rsi
	jb	LBB0_43
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%rax,%rdx,4), %esi
	movl	%esi, (%r14,%rdx,4)
	movl	36(%rax,%rdx,4), %esi
	movl	%esi, 4(%r14,%rdx,4)
	movl	40(%rax,%rdx,4), %esi
	movl	%esi, 8(%r14,%rdx,4)
	movl	44(%rax,%rdx,4), %esi
	movl	%esi, 12(%r14,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_59
	jmp	LBB0_43
LBB0_38:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_42
LBB0_17:
	movl	%edx, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rax
	jae	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_39:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_42
LBB0_19:
	andq	$-4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r14,%rax,4), %xmm0
	movups	16(%r14,%rax,4), %xmm1
	movups	%xmm0, 32(%rcx,%rax,4)
	movups	%xmm1, 48(%rcx,%rax,4)
	movups	32(%r14,%rax,4), %xmm0
	movups	48(%r14,%rax,4), %xmm1
	movups	%xmm0, 64(%rcx,%rax,4)
	movups	%xmm1, 80(%rcx,%rax,4)
	movups	64(%r14,%rax,4), %xmm0
	movups	80(%r14,%rax,4), %xmm1
	movups	%xmm0, 96(%rcx,%rax,4)
	movups	%xmm1, 112(%rcx,%rax,4)
	movups	96(%r14,%rax,4), %xmm0
	movups	112(%r14,%rax,4), %xmm1
	movups	%xmm0, 128(%rcx,%rax,4)
	movups	%xmm1, 144(%rcx,%rax,4)
	addq	$32, %rax
	addq	$-4, %rdi
	jne	LBB0_20
LBB0_21:
	testq	%r9, %r9
	je	LBB0_24
## %bb.22:
	leaq	(%rcx,%rax,4), %rdi
	addq	$48, %rdi
	leaq	(%r14,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rbx), %xmm0
	movups	(%rax,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_23
LBB0_24:
	cmpq	%rdx, %rsi
	je	LBB0_29
	jmp	LBB0_25
LBB0_40:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_42
LBB0_41:
	leaq	L_.str.5(%rip), %rdi
LBB0_42:
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_43:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_44:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_45:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rsi
	jae	LBB0_50
## %bb.49:
	xorl	%ebx, %ebx
	jmp	LBB0_52
LBB0_50:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movups	32(%rax,%rbx,4), %xmm0
	movups	48(%rax,%rbx,4), %xmm1
	movups	%xmm0, (%r14,%rbx,4)
	movups	%xmm1, 16(%r14,%rbx,4)
	movups	64(%rax,%rbx,4), %xmm0
	movups	80(%rax,%rbx,4), %xmm1
	movups	%xmm0, 32(%r14,%rbx,4)
	movups	%xmm1, 48(%r14,%rbx,4)
	movups	96(%rax,%rbx,4), %xmm0
	movups	112(%rax,%rbx,4), %xmm1
	movups	%xmm0, 64(%r14,%rbx,4)
	movups	%xmm1, 80(%r14,%rbx,4)
	movups	128(%rax,%rbx,4), %xmm0
	movups	144(%rax,%rbx,4), %xmm1
	movups	%xmm0, 96(%r14,%rbx,4)
	movups	%xmm1, 112(%r14,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %rdi
	jne	LBB0_51
LBB0_52:
	testq	%r8, %r8
	je	LBB0_55
## %bb.53:
	leaq	(%r14,%rbx,4), %rdi
	addq	$16, %rdi
	leaq	(%rax,%rbx,4), %rbx
	addq	$48, %rbx
	shlq	$5, %r8
	xorl	%esi, %esi
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rsi), %xmm0
	movups	(%rbx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_54
LBB0_55:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_44
	jmp	LBB0_56
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"generic read/write, less than 1 byte. Makes no sense."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"generic read/write, more than 8 bytes. Not supported."

	.comm	_AF9005_REGISTER_RW,4,2         ## @AF9005_REGISTER_RW
	.comm	_AF9005_OFDM_REG,4,2            ## @AF9005_OFDM_REG
	.comm	_AF9005_CMD_OFDM_REG,4,2        ## @AF9005_CMD_OFDM_REG
	.comm	_AF9005_CMD_TUNER,4,2           ## @AF9005_CMD_TUNER
	.comm	_AF9005_CMD_BURST,4,2           ## @AF9005_CMD_BURST
	.comm	_AF9005_CMD_AUTOINC,4,2         ## @AF9005_CMD_AUTOINC
	.comm	_AF9005_CMD_WRITE,4,2           ## @AF9005_CMD_WRITE
	.comm	_AF9005_TUNER_REG,4,2           ## @AF9005_TUNER_REG
	.comm	_AF9005_REGISTER_RW_ACK,4,2     ## @AF9005_REGISTER_RW_ACK
L_.str.2:                               ## @.str.2
	.asciz	"generic read/write, wrong reply code."

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"generic read/write, wrong length in reply."

L_.str.4:                               ## @.str.4
	.asciz	"generic read/write, wrong sequence in reply."

L_.str.5:                               ## @.str.5
	.asciz	"generic read/write wrong status code in reply."

	.comm	_AF9005_CMD_READ,4,2            ## @AF9005_CMD_READ
	.no_dead_strip	_af9005_generic_read_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function af9005_generic_read_write
lCPI0_0:
	.long	14                              ; 0xe
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_af9005_generic_read_write:             ; @af9005_generic_read_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w5, #0
	b.le	LBB0_3
; %bb.1:
	mov	x21, x5
	cmp	w5, #9
	b.lo	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_31
LBB0_5:
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x25, [x0, #8]
	bl	_mutex_lock
	ldr	x1, [x25]
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh9:
	adrp	x8, _AF9005_REGISTER_RW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF9005_REGISTER_RW@GOTPAGEOFF]
	str	d0, [x1]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #12
	stp	w8, w9, [x1, #8]
	ldr	w26, [x25, #8]
	add	w8, w26, #1
	str	w8, [x25, #8]
	asr	w8, w24, #8
	stp	w26, w8, [x1, #16]
	and	w8, w24, #0xff
	str	w8, [x1, #24]
Lloh12:
	adrp	x8, _AF9005_OFDM_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF9005_OFDM_REG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _AF9005_CMD_OFDM_REG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AF9005_CMD_OFDM_REG@GOTPAGEOFF]
Lloh17:
	adrp	x10, _AF9005_CMD_TUNER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _AF9005_CMD_TUNER@GOTPAGEOFF]
	cmp	w8, w23
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	cmp	w21, #2
	b.lo	LBB0_7
; %bb.6:
Lloh19:
	adrp	x9, _AF9005_CMD_BURST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AF9005_CMD_BURST@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _AF9005_CMD_AUTOINC@GOTPAGE
Lloh23:
	ldr	x10, [x10, _AF9005_CMD_AUTOINC@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	lsl	w11, w21, #3
	sub	w11, w11, #8
	orr	w8, w8, w11
	orr	w8, w8, w9
	orr	w8, w8, w10
LBB0_7:
	orr	w8, w8, w22
Lloh25:
	adrp	x9, _AF9005_CMD_WRITE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AF9005_CMD_WRITE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w9, w22
	b.ne	LBB0_13
; %bb.8:
	mov	w9, w21
	cmp	w21, #16
	b.lo	LBB0_10
; %bb.9:
	sub	x10, x1, x20
	add	x10, x10, #32
	cmp	x10, #64
	b.hs	LBB0_23
LBB0_10:
	mov	x10, #0
LBB0_11:
	lsl	x12, x10, #2
	add	x11, x12, x1
	add	x11, x11, #32
	add	x12, x20, x12
	sub	x9, x9, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x12], #4
	str	w10, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_12
	b	LBB0_15
LBB0_13:
Lloh28:
	adrp	x9, _AF9005_TUNER_REG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AF9005_TUNER_REG@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w9, w23
	b.ne	LBB0_15
; %bb.14:
	ldr	w9, [x20]
	str	w9, [x1, #32]
LBB0_15:
	str	w8, [x1, #28]
	mov	x0, x19
	mov	w2, #16
	mov	x3, x1
	mov	w4, #17
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	mov	x23, x0
	cbnz	w0, LBB0_30
; %bb.16:
	ldr	x8, [x25]
	ldr	w9, [x8, #8]
Lloh31:
	adrp	x10, _AF9005_REGISTER_RW_ACK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _AF9005_REGISTER_RW_ACK@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_22
; %bb.17:
	ldr	w9, [x8, #12]
	cmp	w9, #13
	b.ne	LBB0_26
; %bb.18:
	ldr	w9, [x8, #16]
	cmp	w9, w26
	b.ne	LBB0_27
; %bb.19:
	ldr	w9, [x8, #64]
	cmp	w9, #1
	b.ne	LBB0_28
; %bb.20:
Lloh34:
	adrp	x9, _AF9005_CMD_READ@GOTPAGE
Lloh35:
	ldr	x9, [x9, _AF9005_CMD_READ@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w9, w22
	ccmp	w21, #1, #8, eq
	b.ge	LBB0_32
LBB0_21:
	mov	w23, #0
	b	LBB0_30
LBB0_22:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_29
LBB0_23:
	and	x10, x9, #0xfffffff0
	add	x11, x20, #32
	add	x12, x1, #48
	mov	x13, x10
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x12, #-16]
	stp	q2, q3, [x12, #16]
	add	x12, x12, #64
	subs	x13, x13, #16
	b.ne	LBB0_24
; %bb.25:
	cmp	x10, x9
	b.eq	LBB0_15
	b	LBB0_11
LBB0_26:
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_29
LBB0_27:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_29
LBB0_28:
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_29:
	bl	_err
Lloh45:
	adrp	x8, _EIO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_30:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_31:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_32:
	mov	w9, w21
	cmp	w21, #16
	b.lo	LBB0_34
; %bb.33:
	sub	x10, x20, x8
	sub	x10, x10, #32
	cmp	x10, #64
	b.hs	LBB0_37
LBB0_34:
	mov	x10, #0
LBB0_35:
	lsl	x11, x10, #2
	add	x8, x11, x8
	add	x8, x8, #32
	add	x11, x20, x11
	sub	x9, x9, x10
	mov	w23, #0
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	str	w10, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_36
	b	LBB0_30
LBB0_37:
	and	x10, x9, #0xfffffff0
	add	x11, x20, #32
	add	x12, x8, #48
	mov	x13, x10
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-16]
	ldp	q2, q3, [x12, #16]
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	add	x12, x12, #64
	subs	x13, x13, #16
	b.ne	LBB0_38
; %bb.39:
	cmp	x10, x9
	b.eq	LBB0_21
	b	LBB0_35
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"generic read/write, less than 1 byte. Makes no sense."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"generic read/write, more than 8 bytes. Not supported."

	.comm	_AF9005_REGISTER_RW,4,2         ; @AF9005_REGISTER_RW
	.comm	_AF9005_OFDM_REG,4,2            ; @AF9005_OFDM_REG
	.comm	_AF9005_CMD_OFDM_REG,4,2        ; @AF9005_CMD_OFDM_REG
	.comm	_AF9005_CMD_TUNER,4,2           ; @AF9005_CMD_TUNER
	.comm	_AF9005_CMD_BURST,4,2           ; @AF9005_CMD_BURST
	.comm	_AF9005_CMD_AUTOINC,4,2         ; @AF9005_CMD_AUTOINC
	.comm	_AF9005_CMD_WRITE,4,2           ; @AF9005_CMD_WRITE
	.comm	_AF9005_TUNER_REG,4,2           ; @AF9005_TUNER_REG
	.comm	_AF9005_REGISTER_RW_ACK,4,2     ; @AF9005_REGISTER_RW_ACK
l_.str.2:                               ; @.str.2
	.asciz	"generic read/write, wrong reply code."

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"generic read/write, wrong length in reply."

l_.str.4:                               ; @.str.4
	.asciz	"generic read/write, wrong sequence in reply."

l_.str.5:                               ; @.str.5
	.asciz	"generic read/write wrong status code in reply."

	.comm	_AF9005_CMD_READ,4,2            ; @AF9005_CMD_READ
	.no_dead_strip	_af9005_generic_read_write
.subsections_via_symbols
