	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd_attach
_cxd_attach:                            ## @cxd_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	(%rdi), %rdi
	addq	$8, %rdi
	leaq	-20(%rbp), %rsi
	callq	_ngene_port_has_cxd2099
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$1, -20(%rbp)
	jne	LBB0_3
## %bb.4:
	leaq	16(%rbx), %rax
	movq	%rax, -32(%rbp)
	movq	(%rbx), %rdx
	addq	$8, %rdx
	leaq	L_.str.2(%rip), %rdi
	leaq	-32(%rbp), %r8
	xorl	%esi, %esi
	movl	$64, %ecx
	callq	_dvb_module_probe
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, 8(%rbx)
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cxd_cfgtmpl,8,3                ## @cxd_cfgtmpl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No CXD2099AR found\n"

L_.str.1:                               ## @.str.1
	.asciz	"CXD2099AR is uninitialized!\n"

L_.str.2:                               ## @.str.2
	.asciz	"cxd2099"

L_.str.3:                               ## @.str.3
	.asciz	"CXD2099AR attach failed\n"

	.no_dead_strip	_cxd_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd_attach
_cxd_attach:                            ; @cxd_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	x8, [x0]
	add	x0, x8, #8
	add	x1, sp, #4
	bl	_ngene_port_has_cxd2099
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	mov	x8, x20
	ldr	x9, [x8], #16
	str	x8, [sp, #8]
	add	x2, x9, #8
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x4, sp, #8
	mov	x1, #0
	mov	w3, #64
	bl	_dvb_module_probe
	cbz	x0, LBB0_6
; %bb.3:
	str	x20, [x20, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x0, [x8]
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cxd_cfgtmpl,8,3                ; @cxd_cfgtmpl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No CXD2099AR found\n"

l_.str.1:                               ; @.str.1
	.asciz	"CXD2099AR is uninitialized!\n"

l_.str.2:                               ; @.str.2
	.asciz	"cxd2099"

l_.str.3:                               ; @.str.3
	.asciz	"CXD2099AR attach failed\n"

	.no_dead_strip	_cxd_attach
.subsections_via_symbols
