	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk7700p_frontend_attach
_stk7700p_frontend_attach:              ## @stk7700p_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movq	8(%rax), %r12
	movq	_dib7000p_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dvb_attach
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rdi
	movq	_GPIO10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPIO_OUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movq	8(%r15), %rdi
	movq	_GPIO6@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$50, %edi
	callq	_msleep
	movq	8(%r15), %rdi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%r15), %rdi
	movq	_GPIO9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movq	8(%r15), %rdi
	movq	_GPIO10@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%r15), %rdi
	movl	$72, %esi
	movl	$1, %edx
	callq	_dib0700_ctrl_clock
	movq	8(%r15), %rdi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$100, %edi
	callq	_msleep
	movq	8(%r15), %rdi
	movq	_GPIO0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movq	(%r12), %rax
	movl	$1220, (%rax)                   ## imm = 0x4C4
	movq	8(%r15), %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	movq	_stk7700p_dib7000p_config@GOTPCREL(%rip), %rdx
	movl	$18, %esi
	callq	*(%r14)
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movl	$1, 8(%r12)
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_dib7000m_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	movq	_stk7700p_dib7000m_config@GOTPCREL(%rip), %rcx
	movl	$18, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dib7000p_attach,4,2            ## @dib7000p_attach
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GPIO10,4,2                     ## @GPIO10
	.comm	_GPIO_OUT,4,2                   ## @GPIO_OUT
	.comm	_GPIO6,4,2                      ## @GPIO6
	.comm	_GPIO9,4,2                      ## @GPIO9
	.comm	_GPIO0,4,2                      ## @GPIO0
	.comm	_stk7700p_dib7000p_config,4,2   ## @stk7700p_dib7000p_config
	.comm	_dib7000m_attach,4,2            ## @dib7000m_attach
	.comm	_stk7700p_dib7000m_config,4,2   ## @stk7700p_dib7000m_config
	.no_dead_strip	_stk7700p_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk7700p_frontend_attach
_stk7700p_frontend_attach:              ; @stk7700p_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldp	x8, x20, [x0, #8]
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x8, _dib7000p_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dib7000p_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_dvb_attach
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x24, _GPIO10@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GPIO10@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x23, _GPIO_OUT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GPIO_OUT@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x22, _GPIO6@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GPIO6@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #50
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w22, #1
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x8, _GPIO9@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIO9@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
	mov	w1, #72
	mov	w2, #1
	bl	_dib0700_ctrl_clock
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	ldr	w2, [x23]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #100
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x8, _GPIO0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIO0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x8, [x21]
	mov	w9, #1220
	str	w9, [x8]
	ldr	x8, [x20, #8]
	ldr	x0, [x19, #8]
	blr	x8
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x2, _stk7700p_dib7000p_config@GOTPAGE
Lloh16:
	ldr	x2, [x2, _stk7700p_dib7000p_config@GOTPAGEOFF]
	mov	w1, #18
	blr	x8
	ldr	x8, [x19]
	str	x0, [x8]
	str	w22, [x21, #8]
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh20:
	adrp	x8, _dib7000m_attach@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dib7000m_attach@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
Lloh23:
	adrp	x8, _stk7700p_dib7000m_config@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stk7700p_dib7000m_config@GOTPAGEOFF]
	mov	w9, #18
	stp	x9, x8, [sp]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
LBB0_5:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_dib7000p_attach,4,2            ; @dib7000p_attach
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GPIO10,4,2                     ; @GPIO10
	.comm	_GPIO_OUT,4,2                   ; @GPIO_OUT
	.comm	_GPIO6,4,2                      ; @GPIO6
	.comm	_GPIO9,4,2                      ; @GPIO9
	.comm	_GPIO0,4,2                      ; @GPIO0
	.comm	_stk7700p_dib7000p_config,4,2   ; @stk7700p_dib7000p_config
	.comm	_dib7000m_attach,4,2            ; @dib7000m_attach
	.comm	_stk7700p_dib7000m_config,4,2   ; @stk7700p_dib7000m_config
	.no_dead_strip	_stk7700p_frontend_attach
.subsections_via_symbols
