	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function af9005_read_eeprom
LCPI0_0:
	.long	14                              ## 0xe
	.long	0                               ## 0x0
	.long	42                              ## 0x2a
	.long	12                              ## 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_af9005_read_eeprom
	.p2align	4, 0x90
_af9005_read_eeprom:                    ## @af9005_read_eeprom
	.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	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_mutex_lock
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%rbx), %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [14,0,42,12]
	movups	%xmm0, (%rcx)
	movslq	8(%rbx), %r12
	leal	1(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	%r12d, 16(%rcx)
	movl	$0, 20(%rcx)
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, 24(%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 28(%rcx)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rcx, %rsi
	movl	$16, %edx
	movl	$14, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %r14d
	movq	(%rbx), %rax
	cmpl	$43, 8(%rax)
	jne	LBB0_4
## %bb.1:
	cmpl	$10, 12(%rax)
	jne	LBB0_5
## %bb.2:
	movslq	16(%rax), %rcx
	cmpq	%r12, %rcx
	je	LBB0_17
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	xorl	%r14d, %r14d
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_8:
	testl	%r14d, %r14d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_16
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_16
## %bb.10:
	movl	%eax, %edx
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_12:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movslq	24(%rsi,%rcx,4), %rsi
	movq	%rsi, (%r13,%rcx,8)
	movq	(%rbx), %rsi
	movslq	28(%rsi,%rcx,4), %rsi
	movq	%rsi, 8(%r13,%rcx,8)
	movq	(%rbx), %rsi
	movslq	32(%rsi,%rcx,4), %rsi
	movq	%rsi, 16(%r13,%rcx,8)
	movq	(%rbx), %rsi
	movslq	36(%rsi,%rcx,4), %rsi
	movq	%rsi, 24(%r13,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_13
LBB0_14:
	testq	%rax, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	movslq	24(%rdx,%rcx,4), %rdx
	movq	%rdx, (%r13,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpl	$1, 20(%rax)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
## %bb.18:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read eeprom, invalid reply code"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Read eeprom, invalid reply length"

L_.str.2:                               ## @.str.2
	.asciz	"Read eeprom, wrong sequence in reply "

L_.str.3:                               ## @.str.3
	.asciz	"Read eeprom, wrong status in reply "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function af9005_read_eeprom
lCPI0_0:
	.long	14                              ; 0xe
	.long	0                               ; 0x0
	.long	42                              ; 0x2a
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_af9005_read_eeprom
	.p2align	2
_af9005_read_eeprom:                    ; @af9005_read_eeprom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	bl	_mutex_lock
	ldr	x0, [x23]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x1, [x23]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x1]
	ldrsw	x24, [x23, #8]
	add	w8, w24, #1
	str	w8, [x23, #8]
	stp	w24, wzr, [x1, #16]
	stp	w21, w22, [x1, #24]
	mov	x0, x19
	mov	w2, #16
	mov	x3, x1
	mov	w4, #14
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	ldr	x8, [x23]
	ldr	w9, [x8, #8]
	cmp	w9, #43
	b.ne	LBB0_4
; %bb.1:
	ldr	w9, [x8, #12]
	cmp	w9, #10
	b.ne	LBB0_5
; %bb.2:
	ldrsw	x9, [x8, #16]
	cmp	x9, x24
	b.eq	LBB0_11
; %bb.3:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	cmp	w22, #0
	ccmp	w21, #1, #8, eq
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
	mov	w9, w21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	add	x10, x10, x8, lsl #2
	ldrsw	x10, [x10, #24]
	str	x10, [x20, x8, lsl #3]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x22, x0
	ldr	w8, [x8, #20]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.12:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read eeprom, invalid reply code"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Read eeprom, invalid reply length"

l_.str.2:                               ; @.str.2
	.asciz	"Read eeprom, wrong sequence in reply "

l_.str.3:                               ; @.str.3
	.asciz	"Read eeprom, wrong status in reply "

.subsections_via_symbols
