	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk807x_frontend_attach
_stk807x_frontend_attach:               ## @stk807x_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, %rbx
	movq	16(%rdi), %r14
	movq	_dib8000_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_dvb_attach
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdi
	movq	_GPIO6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPIO_OUT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movq	_GPIO9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movq	8(%rbx), %rdi
	movq	_GPIO4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movq	8(%rbx), %rdi
	movq	_GPIO7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movq	8(%rbx), %rdi
	movq	_GPIO10@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movq	8(%rbx), %rdi
	movl	$72, %esi
	movl	$1, %edx
	callq	_dib0700_ctrl_clock
	movl	$10, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movl	(%r13), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movq	_GPIO0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movq	8(%rbx), %rdi
	movl	$1, %esi
	movl	$18, %edx
	movl	$128, %ecx
	xorl	%r8d, %r8d
	callq	*8(%r14)
	movq	8(%rbx), %rdi
	movq	_dib807x_dib8000_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$128, %esi
	callq	*(%r14)
	movq	%rax, %rcx
	movq	(%rbx), %rax
	movq	%rcx, (%rax)
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	testq	%rcx, %rcx
	cmovnel	%r12d, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dib8000_attach,4,2             ## @dib8000_attach
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GPIO6,4,2                      ## @GPIO6
	.comm	_GPIO_OUT,4,2                   ## @GPIO_OUT
	.comm	_GPIO9,4,2                      ## @GPIO9
	.comm	_GPIO4,4,2                      ## @GPIO4
	.comm	_GPIO7,4,2                      ## @GPIO7
	.comm	_GPIO10,4,2                     ## @GPIO10
	.comm	_GPIO0,4,2                      ## @GPIO0
	.comm	_dib807x_dib8000_config,8,3     ## @dib807x_dib8000_config
	.no_dead_strip	_stk807x_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk807x_frontend_attach
_stk807x_frontend_attach:               ; @stk807x_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	x20, [x0, #16]
Lloh0:
	adrp	x8, _dib8000_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dib8000_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_dvb_attach
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _GPIO6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO6@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x21, _GPIO_OUT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GPIO_OUT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x8, _GPIO9@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO9@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x8, _GPIO4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIO4@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x8, _GPIO7@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPIO7@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x22, _GPIO10@GOTPAGE
Lloh18:
	ldr	x22, [x22, _GPIO10@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	w3, #0
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
	mov	w1, #72
	mov	w2, #1
	bl	_dib0700_ctrl_clock
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh19:
	adrp	x8, _GPIO0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GPIO0@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x8, [x20, #8]
	ldr	x0, [x19, #8]
	mov	w1, #1
	mov	w2, #18
	mov	w3, #128
	mov	w4, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x9, _dib807x_dib8000_config@GOTPAGE
Lloh23:
	ldr	x9, [x9, _dib807x_dib8000_config@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x9]
	mov	w1, #128
	blr	x8
	ldr	x8, [x19]
	str	x0, [x8]
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_dib8000_attach,4,2             ; @dib8000_attach
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GPIO6,4,2                      ; @GPIO6
	.comm	_GPIO_OUT,4,2                   ; @GPIO_OUT
	.comm	_GPIO9,4,2                      ; @GPIO9
	.comm	_GPIO4,4,2                      ; @GPIO4
	.comm	_GPIO7,4,2                      ; @GPIO7
	.comm	_GPIO10,4,2                     ; @GPIO10
	.comm	_GPIO0,4,2                      ; @GPIO0
	.comm	_dib807x_dib8000_config,8,3     ; @dib807x_dib8000_config
	.no_dead_strip	_stk807x_frontend_attach
.subsections_via_symbols
