	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_frontend_attach
_af9005_frontend_attach:                ## @af9005_frontend_attach
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_usb_sndbulkpipe
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_usb_clear_halt
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_usb_clear_halt
	movq	_dvb_usb_af9005_dump_eeprom@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	$-8, %ebx
	leaq	-80(%rbp), %r15
	movq	_printk@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	$8, %ebx
	movq	(%r14), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_af9005_read_eeprom
	movq	%r15, %rdi
	movl	$8, %esi
	movq	%r12, %rdx
	callq	_debug_dump
	cmpl	$247, %ebx
	jb	LBB0_2
LBB0_3:
	movq	(%r14), %rdi
	callq	_af9005_fe_attach
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dvb_usb_af9005_dump_eeprom,8,3 ## @dvb_usb_af9005_dump_eeprom
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM DUMP\n"

	.no_dead_strip	_af9005_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_frontend_attach
_af9005_frontend_attach:                ; @af9005_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x20
	mov	w1, #2
	bl	_usb_sndbulkpipe
	mov	x1, x0
	mov	x0, x20
	bl	_usb_clear_halt
	mov	x0, x20
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	mov	x0, x20
	bl	_usb_clear_halt
Lloh3:
	adrp	x8, _dvb_usb_af9005_dump_eeprom@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dvb_usb_af9005_dump_eeprom@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	w20, #-8
Lloh8:
	adrp	x21, _printk@GOTPAGE
Lloh9:
	ldr	x21, [x21, _printk@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #8
	ldr	x0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #8
	bl	_af9005_read_eeprom
	add	x0, sp, #8
	mov	w1, #8
	mov	x2, x21
	bl	_debug_dump
	cmp	w20, #247
	b.lo	LBB0_2
LBB0_3:
	ldr	x0, [x19]
	bl	_af9005_fe_attach
	ldr	x8, [x19, #8]
	str	w0, [x8]
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dvb_usb_af9005_dump_eeprom,8,3 ; @dvb_usb_af9005_dump_eeprom
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM DUMP\n"

	.no_dead_strip	_af9005_frontend_attach
.subsections_via_symbols
