	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib7000m_attach                ## -- Begin function dib7000m_attach
	.p2align	4, 0x90
_dib7000m_attach:                       ## @dib7000m_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	48(%rax), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, 8(%rbx)
	movl	%r14d, 4(%rbx)
	leaq	32(%rbx), %r14
	movq	%rbx, 40(%rbx)
	movq	_dib7000m_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_dib7000m_identify
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	addq	$16, %rdi
	movl	4(%rbx), %ecx
	cmpl	$16384, (%rbx)                  ## imm = 0x4000
	jne	LBB0_3
## %bb.4:
	movq	_DIB7000@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_DIB7000MC@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	callq	_dibx000_init_i2c_master
	movq	%rbx, %rdi
	callq	_dib7000m_demod_reset
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dib7000m_ops,8,3               ## @dib7000m_ops
	.comm	_DIB7000,4,2                    ## @DIB7000
	.comm	_DIB7000MC,4,2                  ## @DIB7000MC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib7000m_attach                ; -- Begin function dib7000m_attach
	.p2align	2
_dib7000m_attach:                       ; @dib7000m_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #48
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	str	x22, [x19, #8]
	str	w20, [x19, #4]
	add	x20, x19, #32
	str	x19, [x19, #40]
Lloh3:
	adrp	x1, _dib7000m_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dib7000m_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #24
	bl	_mutex_init
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_dib7000m_identify
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_kfree
LBB0_3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
	add	x0, x19, #16
Lloh5:
	adrp	x8, _DIB7000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIB7000@GOTPAGEOFF]
Lloh7:
	adrp	x9, _DIB7000MC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DIB7000MC@GOTPAGEOFF]
	ldp	w10, w3, [x19]
	cmp	w10, #4, lsl #12                ; =16384
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_dibx000_init_i2c_master
	mov	x0, x19
	bl	_dib7000m_demod_reset
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dib7000m_ops,8,3               ; @dib7000m_ops
	.comm	_DIB7000,4,2                    ; @DIB7000
	.comm	_DIB7000MC,4,2                  ; @DIB7000MC
.subsections_via_symbols
