	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function demod_attach_drxk
_demod_attach_drxk:                     ## @demod_attach_drxk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	leaq	-56(%rbp), %r13
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	movl	$4, -48(%rbp)
	movl	(%rbx), %eax
	xorl	$2, %eax
	addl	$41, %eax
	movl	%eax, -44(%rbp)
	movq	_drxk_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_dvb_attach
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 8(%rax)
	movl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_drxk_gate_ctrl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drxk_a3.mc"

	.comm	_drxk_attach,4,2                ## @drxk_attach
L_.str.1:                               ## @.str.1
	.asciz	"No DRXK found!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_drxk_gate_ctrl,4,2             ## @drxk_gate_ctrl
	.no_dead_strip	_demod_attach_drxk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function demod_attach_drxk
_demod_attach_drxk:                     ; @demod_attach_drxk
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp]
	mov	w8, #4
	ldr	w9, [x19]
	eor	w9, w9, #0x2
	add	w9, w9, #41
	stp	w8, w9, [sp, #8]
Lloh2:
	adrp	x8, _drxk_attach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drxk_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, x21
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	str	x19, [x8, #8]
	ldr	w9, [x8]
	str	w9, [x19, #16]
Lloh5:
	adrp	x9, _drxk_gate_ctrl@GOTPAGE
Lloh6:
	ldr	x9, [x9, _drxk_gate_ctrl@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drxk_a3.mc"

	.comm	_drxk_attach,4,2                ; @drxk_attach
l_.str.1:                               ; @.str.1
	.asciz	"No DRXK found!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_drxk_gate_ctrl,4,2             ; @drxk_gate_ctrl
	.no_dead_strip	_demod_attach_drxk
.subsections_via_symbols
