	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv090x_attach                 ## -- Begin function stv090x_attach
	.p2align	4, 0x90
_stv090x_attach:                        ## @stv090x_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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	movq	_verbose@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r13)
	movq	%rbx, 48(%r13)
	movq	%r12, 56(%r13)
	movq	_stv090x_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %r14
	movl	%eax, 32(%r13)
	movq	%r13, 24(%r13)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, (%r13)
	movups	(%rbx), %xmm0
	movups	%xmm0, 8(%r13)
	movq	_STV090x_RO_35@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_find_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	8(%r13), %rcx
	movq	_STV090x_DUAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	incl	(%rax)
	movq	_FE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_4
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 40(%r13)
	movq	%rax, %rdi
	callq	_append_internal
	movq	40(%r13), %rax
	movl	$1, (%rax)
	movq	$0, 40(%rax)
	movq	$0, 8(%rax)
	movq	56(%r13), %rcx
	movq	%rcx, 32(%rax)
	movq	48(%r13), %rcx
	movl	16(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_FE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	40(%r13), %rdi
	addq	$20, %rdi
	callq	_mutex_init
	movq	40(%r13), %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_stv090x_sleep
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_stv090x_setup
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_stv090x_wakeup
	movq	_FE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	js	LBB0_10
LBB0_4:
	movq	_STV0900@GOTPCREL(%rip), %rax
	movq	16(%r13), %rcx
	movq	40(%r13), %rdx
	cmpq	(%rax), %rcx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	8(%rdx), %r9
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_13
LBB0_6:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_11
LBB0_8:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.7(%rip), %rdx
LBB0_11:
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_12:
	movq	%r13, %rdi
	callq	_kfree
	xorl	%r14d, %r14d
LBB0_13:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_verbose,4,2                    ## @verbose
	.comm	_stv090x_ops,4,2                ## @stv090x_ops
	.comm	_STV090x_RO_35,4,2              ## @STV090x_RO_35
	.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	_FE_ERROR,4,2                   ## @FE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Attaching %s demodulator(%d) Cut=0x%02x"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"Create New Internal Structure!"

L_.str.5:                               ## @.str.5
	.asciz	"Error putting device to sleep"

L_.str.6:                               ## @.str.6
	.asciz	"Error setting up device"

L_.str.7:                               ## @.str.7
	.asciz	"Error waking device"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv090x_attach                 ; -- Begin function stv090x_attach
	.p2align	2
_stv090x_attach:                        ; @stv090x_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #80
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
Lloh2:
	adrp	x8, _verbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
	str	x8, [x19, #72]
	stp	x23, x22, [x19, #48]
Lloh4:
	adrp	x8, _stv090x_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stv090x_ops@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	x20, x19, #24
	str	w8, [x19, #32]
	str	x19, [x19, #24]
	str	w21, [x19]
	ldr	q0, [x23]
	stur	q0, [x19, #8]
Lloh7:
	adrp	x8, _STV090x_RO_35@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STV090x_RO_35@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	w1, [x23, #16]
	mov	x0, x22
	bl	_find_dev
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _STV090x_DUAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _STV090x_DUAL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x0]
	str	x8, [x19, #40]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh13:
	adrp	x8, _FE_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FE_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh18:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _STV0900@GOTPAGE
Lloh22:
	ldr	x9, [x9, _STV0900@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, l_.str.3@PAGE
Lloh25:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh26:
	adrp	x11, l_.str.2@PAGE
Lloh27:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x9, [x19, #40]
	ldr	x9, [x9, #8]
	str	x9, [sp, #16]
	b	LBB0_8
LBB0_4:
	ldr	w1, [x24]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x19, #40]
	bl	_append_internal
	mov	w8, #1
	ldp	x9, x10, [x19, #40]
	str	w8, [x9]
	str	xzr, [x9, #8]
	ldr	x8, [x19, #56]
	stp	x8, xzr, [x9, #32]
	ldr	w8, [x10, #16]
	str	w8, [x9, #24]
Lloh28:
	adrp	x8, _FE_INFO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FE_INFO@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	x8, [x19, #40]
	add	x0, x8, #20
	bl	_mutex_init
	ldr	x8, [x19, #40]
	add	x0, x8, #16
	bl	_mutex_init
	mov	x0, x20
	bl	_stv090x_sleep
	tbnz	x0, #63, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_stv090x_setup
	tbnz	x0, #63, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_stv090x_wakeup
	mov	x8, x0
Lloh33:
	adrp	x9, _FE_ERROR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _FE_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x9]
	tbnz	x8, #63, LBB0_11
; %bb.7:
	ldr	x8, [x19, #16]
Lloh36:
	adrp	x9, _STV0900@GOTPAGE
Lloh37:
	ldr	x9, [x9, _STV0900@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, l_.str.3@PAGE
Lloh40:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh41:
	adrp	x11, l_.str.2@PAGE
Lloh42:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x9, [x19, #40]
	ldr	x9, [x9, #8]
	str	x9, [sp, #16]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_8:
	stp	x8, x21, [sp]
Lloh43:
	adrp	x2, l_.str.1@PAGE
Lloh44:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	b	LBB0_14
LBB0_9:
Lloh45:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x2, l_.str.5@PAGE
Lloh49:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh50:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x2, l_.str.6@PAGE
Lloh54:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh55:
	adrp	x2, l_.str.7@PAGE
Lloh56:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_12:
	mov	w1, #1
	bl	_dprintk
LBB0_13:
	mov	x0, x19
	bl	_kfree
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_verbose,4,2                    ; @verbose
	.comm	_stv090x_ops,4,2                ; @stv090x_ops
	.comm	_STV090x_RO_35,4,2              ; @STV090x_RO_35
	.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	_FE_ERROR,4,2                   ; @FE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Attaching %s demodulator(%d) Cut=0x%02x"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"Create New Internal Structure!"

l_.str.5:                               ; @.str.5
	.asciz	"Error putting device to sleep"

l_.str.6:                               ; @.str.6
	.asciz	"Error setting up device"

l_.str.7:                               ; @.str.7
	.asciz	"Error waking device"

.subsections_via_symbols
