	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drx39xxj_attach                ## -- Begin function drx39xxj_attach
	.p2align	4, 0x90
_drx39xxj_attach:                       ## @drx39xxj_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
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$224, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%r13), %edx
	movq	_drxj_default_demod_g@GOTPCREL(%rip), %rdi
	movl	$224, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %edx
	movq	_drxj_default_addr_g@GOTPCREL(%rip), %rdi
	movl	$224, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	movq	_drxj_default_comm_attr_g@GOTPCREL(%rip), %rdi
	movl	$224, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movl	(%r13), %edx
	movq	_drxj_data_g@GOTPCREL(%rip), %rdi
	movl	$224, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 152(%r14)
	movq	%r12, 216(%r14)
	movq	%r15, 208(%r12)
	movq	%rbx, 184(%r12)
	movq	%r14, 200(%r15)
	movq	_DRX39XX_MAIN_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 192(%rbx)
	movabsq	$21474836480001, %rax           ## imm = 0x138800000001
	movq	%rax, (%rbx)
	movq	_DRX_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 176(%rbx)
	movq	%r13, 168(%r12)
	movq	_DRX_UIO_MODE_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 160(%r13)
	movq	%rcx, 152(%r12)
	movq	%r12, %rdi
	callq	_drxj_open
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_11
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	8(%r14), %rbx
	movq	%r14, %rdi
	addq	$144, %rdi
	movq	_drx39xxj_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, 136(%r14)
	movl	$1, 120(%r14)
	movl	$1, 104(%r14)
	movl	$1, 88(%r14)
	movl	$1, 72(%r14)
	movl	$1, 56(%r14)
	movl	$1, 40(%r14)
	movl	$1, 24(%r14)
	movl	$1, 8(%r14)
	movq	_FE_SCALE_RELATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	128(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	112(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	96(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	80(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	64(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	48(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	32(%r14), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_drxj_default_demod_g,4,2       ## @drxj_default_demod_g
	.comm	_drxj_default_addr_g,4,2        ## @drxj_default_addr_g
	.comm	_drxj_default_comm_attr_g,4,2   ## @drxj_default_comm_attr_g
	.comm	_drxj_data_g,4,2                ## @drxj_data_g
	.comm	_DRX39XX_MAIN_FIRMWARE,4,2      ## @DRX39XX_MAIN_FIRMWARE
	.comm	_DRX_POWER_DOWN,4,2             ## @DRX_POWER_DOWN
	.comm	_DRX_UIO_MODE_READWRITE,4,2     ## @DRX_UIO_MODE_READWRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DRX open failed!  Aborting\n"

	.comm	_drx39xxj_ops,4,2               ## @drx39xxj_ops
	.comm	_FE_SCALE_RELATIVE,4,2          ## @FE_SCALE_RELATIVE
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
.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 drx39xxj_attach
lCPI0_0:
	.long	1                               ; 0x1
	.long	5000                            ; 0x1388
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_drx39xxj_attach
	.p2align	2
_drx39xxj_attach:                       ; @drx39xxj_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #224
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w2, [x24]
Lloh2:
	adrp	x0, _drxj_default_demod_g@GOTPAGE
Lloh3:
	ldr	x0, [x0, _drxj_default_demod_g@GOTPAGEOFF]
	mov	w1, #224
	bl	_kmemdup
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w2, [x24]
Lloh4:
	adrp	x0, _drxj_default_addr_g@GOTPAGE
Lloh5:
	ldr	x0, [x0, _drxj_default_addr_g@GOTPAGEOFF]
	mov	w1, #224
	bl	_kmemdup
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w2, [x24]
Lloh6:
	adrp	x0, _drxj_default_comm_attr_g@GOTPAGE
Lloh7:
	ldr	x0, [x0, _drxj_default_comm_attr_g@GOTPAGEOFF]
	mov	w1, #224
	bl	_kmemdup
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w2, [x24]
Lloh8:
	adrp	x0, _drxj_data_g@GOTPAGE
Lloh9:
	ldr	x0, [x0, _drxj_data_g@GOTPAGEOFF]
	mov	w1, #224
	bl	_kmemdup
	mov	x24, x0
	cbz	x0, LBB0_11
; %bb.5:
	str	x23, [x19, #152]
	str	x20, [x19, #216]
	str	x21, [x20, #208]
	str	x22, [x20, #184]
	str	x19, [x21, #200]
Lloh10:
	adrp	x8, _DRX39XX_MAIN_FIRMWARE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRX39XX_MAIN_FIRMWARE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x22, #192]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
Lloh15:
	adrp	x8, _DRX_POWER_DOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRX_POWER_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #176]
	str	x24, [x20, #168]
Lloh18:
	adrp	x8, _DRX_UIO_MODE_READWRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRX_UIO_MODE_READWRITE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x24, #160]
	str	x23, [x20, #152]
	mov	x0, x20
	bl	_drxj_open
	cbz	w0, LBB0_13
; %bb.6:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_11
LBB0_7:
	mov	x21, #0
	mov	x22, #0
	mov	x24, #0
	mov	x20, #0
	b	LBB0_11
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x24, #0
LBB0_11:
	mov	x0, x24
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, #0
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	add	x0, x19, #144
Lloh23:
	adrp	x1, _drx39xxj_ops@GOTPAGE
Lloh24:
	ldr	x1, [x1, _drx39xxj_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	mov	w8, #1
	mov	x0, x19
	str	w8, [x0, #8]!
	str	x19, [x19, #136]
	str	w8, [x19, #120]
	str	w8, [x19, #104]
	str	w8, [x19, #88]
	str	w8, [x19, #72]
	str	w8, [x19, #56]
	str	w8, [x19, #40]
	str	w8, [x19, #24]
Lloh25:
	adrp	x8, _FE_SCALE_RELATIVE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FE_SCALE_RELATIVE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x9, [x19, #128]
	str	w8, [x9]
Lloh28:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19, #112]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x19, #96]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x19, #80]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x19, #64]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x19, #48]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x19, #32]
	str	x9, [x10]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	str	x8, [x9]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_drxj_default_demod_g,4,2       ; @drxj_default_demod_g
	.comm	_drxj_default_addr_g,4,2        ; @drxj_default_addr_g
	.comm	_drxj_default_comm_attr_g,4,2   ; @drxj_default_comm_attr_g
	.comm	_drxj_data_g,4,2                ; @drxj_data_g
	.comm	_DRX39XX_MAIN_FIRMWARE,4,2      ; @DRX39XX_MAIN_FIRMWARE
	.comm	_DRX_POWER_DOWN,4,2             ; @DRX_POWER_DOWN
	.comm	_DRX_UIO_MODE_READWRITE,4,2     ; @DRX_UIO_MODE_READWRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DRX open failed!  Aborting\n"

	.comm	_drx39xxj_ops,4,2               ; @drx39xxj_ops
	.comm	_FE_SCALE_RELATIVE,4,2          ; @FE_SCALE_RELATIVE
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
.subsections_via_symbols
