	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az6027_frontend_attach
_az6027_frontend_attach:                ## @az6027_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_az6027_frontend_poweron
	movq	%rbx, %rdi
	callq	_az6027_frontend_reset
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_deb_info
	movq	8(%rbx), %rsi
	movq	_az6027_stb0899_config@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_stb0899_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movslq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	movq	(%rax), %rdi
	movq	_az6027_stb6100_config@GOTPCREL(%rip), %r14
	movq	%r14, %rsi
	callq	_stb6100_attach
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movslq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movq	_az6027_set_voltage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_az6027_ci_init
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	_warn
	jmp	LBB0_5
LBB0_3:
	movq	(%rbx), %rax
	movq	$0, (%rax)
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_az6027_frontend_tsbypass
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adap = %p, dev = %p\n"

	.comm	_az6027_stb0899_config,4,2      ## @az6027_stb0899_config
L_.str.1:                               ## @.str.1
	.asciz	"found STB0899 DVB-S/DVB-S2 frontend @0x%02x"

	.comm	_az6027_stb6100_config,4,2      ## @az6027_stb6100_config
L_.str.2:                               ## @.str.2
	.asciz	"found STB6100 DVB-S/DVB-S2 frontend @0x%02x"

	.comm	_az6027_set_voltage,4,2         ## @az6027_set_voltage
L_.str.3:                               ## @.str.3
	.asciz	"no front-end attached\n"

	.no_dead_strip	_az6027_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az6027_frontend_attach
_az6027_frontend_attach:                ; @az6027_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_az6027_frontend_poweron
	mov	x0, x19
	bl	_az6027_frontend_reset
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_deb_info
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x20, _az6027_stb0899_config@GOTPAGE
Lloh3:
	ldr	x20, [x20, _az6027_stb0899_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_stb0899_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	ldrsw	x1, [x20]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	ldp	x8, x2, [x19]
	ldr	x0, [x8]
Lloh6:
	adrp	x20, _az6027_stb6100_config@GOTPAGE
Lloh7:
	ldr	x20, [x20, _az6027_stb6100_config@GOTPAGEOFF]
	mov	x1, x20
	bl	_stb6100_attach
	cbz	x0, LBB0_4
; %bb.2:
	ldrsw	x1, [x20]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
Lloh10:
	adrp	x8, _az6027_set_voltage@GOTPAGE
Lloh11:
	ldr	x8, [x8, _az6027_set_voltage@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	w8, [x9]
	mov	x0, x19
	bl	_az6027_ci_init
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_az6027_frontend_tsbypass
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adap = %p, dev = %p\n"

	.comm	_az6027_stb0899_config,4,2      ; @az6027_stb0899_config
l_.str.1:                               ; @.str.1
	.asciz	"found STB0899 DVB-S/DVB-S2 frontend @0x%02x"

	.comm	_az6027_stb6100_config,4,2      ; @az6027_stb6100_config
l_.str.2:                               ; @.str.2
	.asciz	"found STB6100 DVB-S/DVB-S2 frontend @0x%02x"

	.comm	_az6027_set_voltage,4,2         ; @az6027_set_voltage
l_.str.3:                               ; @.str.3
	.asciz	"no front-end attached\n"

	.no_dead_strip	_az6027_frontend_attach
.subsections_via_symbols
