	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_setup_compound
_stv090x_setup_compound:                ## @stv090x_setup_compound
	.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
	movl	36(%rdi), %edi
	movq	24(%rbx), %rax
	movl	16(%rax), %esi
	callq	_find_dev
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rcx
	movq	_STV090x_DUAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.2:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	incl	(%rax)
	movq	_FE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_3
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rdi
	callq	_append_internal
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	$1, (%rdi)
	movq	$0, 24(%rdi)
	movl	36(%rbx), %eax
	movl	%eax, 20(%rdi)
	movq	24(%rbx), %rax
	movl	16(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_FE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	16(%rbx), %rdi
	addq	$12, %rdi
	callq	_mutex_init
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	callq	_mutex_init
	leaq	32(%rbx), %rdi
	callq	_stv090x_setup
	testq	%rax, %rax
	js	LBB0_13
LBB0_3:
	movq	16(%rbx), %rax
	movl	4(%rax), %r9d
	cmpl	$48, %r9d
	jl	LBB0_5
## %bb.4:
	movq	_FE_CAN_MULTISTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_5:
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	leaq	32(%rbx), %rdi
	movq	_SEC_MINI_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv090x_send_diseqc_burst
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rax
	movl	4(%rcx), %r9d
LBB0_7:
	movq	_stv090x_set_gpio@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_FE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rcx
	movq	_STV0900@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rcx
	cmoveq	%rdx, %rcx
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_15
LBB0_10:
	callq	_kfree
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_13:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	16(%rbx), %rdi
	callq	_remove_dev
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV090x_DUAL,8,3               ## @STV090x_DUAL
	.comm	_FE_INFO,4,2                    ## @FE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found Internal Structure!"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Create New Internal Structure!"

	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Error setting up device"

	.comm	_FE_CAN_MULTISTREAM,4,2         ## @FE_CAN_MULTISTREAM
	.comm	_SEC_MINI_A,4,2                 ## @SEC_MINI_A
	.comm	_stv090x_set_gpio,4,2           ## @stv090x_set_gpio
L_.str.3:                               ## @.str.3
	.asciz	"Probing %s demodulator(%d) Cut=0x%02x"

	.comm	_STV0900,8,3                    ## @STV0900
L_.str.4:                               ## @.str.4
	.asciz	"STV0900"

L_.str.5:                               ## @.str.5
	.asciz	"STV0903"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_stv090x_setup_compound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function stv090x_setup_compound
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_stv090x_setup_compound:                ; @stv090x_setup_compound
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w0, [x0, #36]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #16]
	bl	_find_dev
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _STV090x_DUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STV090x_DUAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x0]
	str	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh3:
	adrp	x8, _FE_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.4:
	bl	_append_internal
	mov	x8, x0
	ldr	x0, [x19, #16]
	cbz	x8, LBB0_11
; %bb.5:
	str	xzr, [x0, #24]
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	ldr	w8, [x19, #36]
	ldr	x9, [x19, #24]
	ldr	w9, [x9, #16]
	stp	w9, w8, [x0, #16]
Lloh13:
	adrp	x8, _FE_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FE_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	x8, [x19, #16]
	add	x0, x8, #12
	bl	_mutex_init
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	bl	_mutex_init
	add	x0, x19, #32
	bl	_stv090x_setup
	tbnz	x0, #63, LBB0_13
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	cmp	w8, #48
	b.lt	LBB0_8
; %bb.7:
Lloh18:
	adrp	x9, _FE_CAN_MULTISTREAM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FE_CAN_MULTISTREAM@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	str	w9, [x19, #32]
LBB0_8:
	ldr	x9, [x19, #24]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_10
; %bb.9:
	add	x0, x19, #32
Lloh21:
	adrp	x8, _SEC_MINI_A@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SEC_MINI_A@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_stv090x_send_diseqc_burst
	ldp	x8, x9, [x19, #16]
	ldr	w8, [x8, #4]
LBB0_10:
Lloh24:
	adrp	x10, _stv090x_set_gpio@GOTPAGE
Lloh25:
	ldr	x10, [x10, _stv090x_set_gpio@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	str	w10, [x9, #4]
Lloh27:
	adrp	x10, _FE_ERROR@GOTPAGE
Lloh28:
	ldr	x10, [x10, _FE_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x10]
	ldr	x10, [x19, #8]
Lloh30:
	adrp	x11, _STV0900@GOTPAGE
Lloh31:
	ldr	x11, [x11, _STV0900@GOTPAGEOFF]
Lloh32:
	adrp	x12, l_.str.5@PAGE
Lloh33:
	add	x12, x12, l_.str.5@PAGEOFF
Lloh34:
	ldr	x11, [x11]
Lloh35:
	adrp	x13, l_.str.4@PAGE
Lloh36:
	add	x13, x13, l_.str.4@PAGEOFF
	cmp	x10, x11
	csel	x10, x13, x12, eq
	ldr	w9, [x9]
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
Lloh37:
	adrp	x2, l_.str.3@PAGE
Lloh38:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #0
	b	LBB0_15
LBB0_11:
	bl	_kfree
LBB0_12:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh41:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x2, l_.str.2@PAGE
Lloh45:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	x0, [x19, #16]
	bl	_remove_dev
	ldr	x0, [x19, #16]
	bl	_kfree
Lloh46:
	adrp	x8, _ENODEV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_STV090x_DUAL,8,3               ; @STV090x_DUAL
	.comm	_FE_INFO,4,2                    ; @FE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found Internal Structure!"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Create New Internal Structure!"

	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Error setting up device"

	.comm	_FE_CAN_MULTISTREAM,4,2         ; @FE_CAN_MULTISTREAM
	.comm	_SEC_MINI_A,4,2                 ; @SEC_MINI_A
	.comm	_stv090x_set_gpio,4,2           ; @stv090x_set_gpio
l_.str.3:                               ; @.str.3
	.asciz	"Probing %s demodulator(%d) Cut=0x%02x"

	.comm	_STV0900,8,3                    ; @STV0900
l_.str.4:                               ; @.str.4
	.asciz	"STV0900"

l_.str.5:                               ; @.str.5
	.asciz	"STV0903"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_stv090x_setup_compound
.subsections_via_symbols
