	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [14,0,42,12]
	movaps	%xmm0, -112(%rbp)
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movl	%eax, -96(%rbp)
	movl	$0, -92(%rbp)
	movl	%r13d, -88(%rbp)
	movl	%r12d, -84(%rbp)
	movq	%rbx, %rdi
	leaq	-112(%rbp), %rsi
	movl	$16, %edx
	movq	%r14, %rcx
	movl	$14, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	cmpl	$43, -168(%rbp)
	jne	LBB0_2
## %bb.3:
	cmpl	$10, -164(%rbp)
	jne	LBB0_4
## %bb.5:
	movl	-160(%rbp), %eax
	cmpl	-96(%rbp), %eax
	jne	LBB0_6
## %bb.7:
	cmpl	$1, -156(%rbp)
	jne	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.9:
	leaq	-152(%rbp), %rsi
	movl	%r13d, %edx
	shlq	$2, %rdx
	callq	_memcpy
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.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:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0]
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #64]
	ldr	w8, [x23]
	add	w9, w8, #1
	str	w9, [x23]
	stp	w8, wzr, [sp, #80]
	stp	w20, w21, [sp, #88]
	add	x1, sp, #64
	add	x3, sp, #8
	mov	x0, x22
	mov	w2, #16
	mov	w4, #14
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	w8, [sp, #16]
	cmp	w8, #43
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [sp, #20]
	cmp	w8, #10
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [sp, #24]
	ldr	w9, [sp, #80]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.5:
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.6:
	add	x8, sp, #8
	add	x1, x8, #24
	mov	w8, w20
	lsl	x2, x8, #2
	mov	x0, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_err
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_14:
	mov	w0, #0
	b	LBB0_12
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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
