	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5h1411_frontend_attach
_s5h1411_frontend_attach:               ## @s5h1411_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	8(%rdi), %rdi
	movq	8(%rdi), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
	movq	_GPIO0@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
	movq	8(%rbx), %rdi
	movq	_GPIO3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movq	8(%rbx), %rdi
	movq	_GPIO6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$400, %edi                      ## imm = 0x190
	callq	_msleep
	movq	8(%rbx), %rdi
	movq	_GPIO10@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$60, %edi
	callq	_msleep
	movq	8(%rbx), %rdi
	movl	(%r13), %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
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	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	_GPIO2@GOTPCREL(%rip), %r12
	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
	movq	_s5h1411_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_pinnacle_801e_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
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO0,4,2                      ## @GPIO0
	.comm	_GPIO_OUT,4,2                   ## @GPIO_OUT
	.comm	_GPIO3,4,2                      ## @GPIO3
	.comm	_GPIO6,4,2                      ## @GPIO6
	.comm	_GPIO10,4,2                     ## @GPIO10
	.comm	_GPIO9,4,2                      ## @GPIO9
	.comm	_GPIO4,4,2                      ## @GPIO4
	.comm	_GPIO7,4,2                      ## @GPIO7
	.comm	_GPIO2,4,2                      ## @GPIO2
	.comm	_s5h1411_attach,4,2             ## @s5h1411_attach
	.comm	_pinnacle_801e_config,4,2       ## @pinnacle_801e_config
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_s5h1411_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5h1411_frontend_attach
_s5h1411_frontend_attach:               ; @s5h1411_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, _GPIO0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GPIO0@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
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x8, _GPIO3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPIO3@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x8, _GPIO6@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GPIO6@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #400
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x22, _GPIO10@GOTPAGE
Lloh11:
	ldr	x22, [x22, _GPIO10@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #60
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	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, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x8, _GPIO9@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIO9@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x8, _GPIO4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPIO4@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x8, _GPIO7@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GPIO7@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #1
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x21, _GPIO2@GOTPAGE
Lloh22:
	ldr	x21, [x21, _GPIO2@GOTPAGEOFF]
	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
Lloh23:
	adrp	x8, _s5h1411_attach@GOTPAGE
Lloh24:
	ldr	x8, [x8, _s5h1411_attach@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh26:
	adrp	x1, _pinnacle_801e_config@GOTPAGE
Lloh27:
	ldr	x1, [x1, _pinnacle_801e_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	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	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO0,4,2                      ; @GPIO0
	.comm	_GPIO_OUT,4,2                   ; @GPIO_OUT
	.comm	_GPIO3,4,2                      ; @GPIO3
	.comm	_GPIO6,4,2                      ; @GPIO6
	.comm	_GPIO10,4,2                     ; @GPIO10
	.comm	_GPIO9,4,2                      ; @GPIO9
	.comm	_GPIO4,4,2                      ; @GPIO4
	.comm	_GPIO7,4,2                      ; @GPIO7
	.comm	_GPIO2,4,2                      ; @GPIO2
	.comm	_s5h1411_attach,4,2             ; @s5h1411_attach
	.comm	_pinnacle_801e_config,4,2       ; @pinnacle_801e_config
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_s5h1411_frontend_attach
.subsections_via_symbols
