	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3305_frontend_attach
_lgdt3305_frontend_attach:              ## @lgdt3305_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	8(%rdi), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
	movq	_GPIO6@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GPIO_OUT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$30, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$30, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movq	_GPIO10@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$30, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movl	(%r12), %esi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$30, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$30, %edi
	callq	_msleep
	movq	_lgdt3305_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_hcw_lgdt3305_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovnel	%r14d, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO6,4,2                      ## @GPIO6
	.comm	_GPIO_OUT,4,2                   ## @GPIO_OUT
	.comm	_GPIO10,4,2                     ## @GPIO10
	.comm	_lgdt3305_attach,4,2            ## @lgdt3305_attach
	.comm	_hcw_lgdt3305_config,4,2        ## @hcw_lgdt3305_config
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_lgdt3305_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3305_frontend_attach
_lgdt3305_frontend_attach:              ; @lgdt3305_frontend_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x0, [x0, #8]
	ldr	x8, [x0, #8]
	movi.2s	v0, #1
	str	d0, [x8]
Lloh0:
	adrp	x21, _GPIO6@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GPIO6@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x20, _GPIO_OUT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GPIO_OUT@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #30
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #30
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x21, _GPIO10@GOTPAGE
Lloh5:
	ldr	x21, [x21, _GPIO10@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #30
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #30
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #30
	bl	_msleep
Lloh6:
	adrp	x8, _lgdt3305_attach@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lgdt3305_attach@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh9:
	adrp	x1, _hcw_lgdt3305_config@GOTPAGE
Lloh10:
	ldr	x1, [x1, _hcw_lgdt3305_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO6,4,2                      ; @GPIO6
	.comm	_GPIO_OUT,4,2                   ; @GPIO_OUT
	.comm	_GPIO10,4,2                     ; @GPIO10
	.comm	_lgdt3305_attach,4,2            ; @lgdt3305_attach
	.comm	_hcw_lgdt3305_config,4,2        ; @hcw_lgdt3305_config
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_lgdt3305_frontend_attach
.subsections_via_symbols
