	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp3028_frontend_init
_vp3028_frontend_init:                  ## @vp3028_frontend_init
	.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
	leaq	8(%rdi), %r14
	movq	(%rdi), %r12
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_mantis_gpio_set_bits
	movl	$100, %edi
	callq	_msleep
	movq	_POWER_ON@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mantis_frontend_power
	movl	$100, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mantis_gpio_set_bits
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mantis_frontend_power
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_1:
	movl	$250, %edi
	callq	_msleep
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_zl10353_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_hopper_vp3028_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_dvb_attach
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_ON,4,2                   ## @POWER_ON
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probing for 10353 (DVB-T)"

	.comm	_zl10353_attach,4,2             ## @zl10353_attach
	.comm	_hopper_vp3028_config,4,2       ## @hopper_vp3028_config
L_.str.1:                               ## @.str.1
	.asciz	"Frontend on <%s> POWER ON failed! <%d>"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"Done!"

	.no_dead_strip	_vp3028_frontend_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp3028_frontend_init
_vp3028_frontend_init:                  ; @vp3028_frontend_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	mov	x19, x0
	ldr	x21, [x19], #8
	ldr	w1, [x21]
	mov	w2, #0
	bl	_mantis_gpio_set_bits
	mov	w0, #100
	bl	_msleep
Lloh0:
	adrp	x22, _POWER_ON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _POWER_ON@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mantis_frontend_power
	mov	w0, #100
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #1
	bl	_mantis_gpio_set_bits
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mantis_frontend_power
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	x9, x0, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	mov	w1, #1
	bl	_dprintk
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	w0, #250
	bl	_msleep
Lloh10:
	adrp	x20, _MANTIS_ERROR@GOTPAGE
Lloh11:
	ldr	x20, [x20, _MANTIS_ERROR@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh14:
	adrp	x8, _zl10353_attach@GOTPAGE
Lloh15:
	ldr	x8, [x8, _zl10353_attach@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, _hopper_vp3028_config@GOTPAGE
Lloh18:
	ldr	x1, [x1, _hopper_vp3028_config@GOTPAGEOFF]
	mov	x2, x19
	bl	_dvb_attach
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_ON,4,2                   ; @POWER_ON
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probing for 10353 (DVB-T)"

	.comm	_zl10353_attach,4,2             ; @zl10353_attach
	.comm	_hopper_vp3028_config,4,2       ; @hopper_vp3028_config
l_.str.1:                               ; @.str.1
	.asciz	"Frontend on <%s> POWER ON failed! <%d>"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"Done!"

	.no_dead_strip	_vp3028_frontend_init
.subsections_via_symbols
