	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_dualdig4_rev2_frontend_attach
_cxusb_dualdig4_rev2_frontend_attach:   ## @cxusb_dualdig4_rev2_frontend_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movl	4(%rax), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_2:
	movq	8(%rbx), %rdi
	movq	_CMD_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	movq	8(%rbx), %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_cxusb_bluebird_gpio_pulse
	movq	_dib7000p_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_dvb_attach
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rdi
	movq	_cxusb_dualdig4_rev2_config@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	movl	$18, %edx
	callq	*(%r14)
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	8(%rbx), %rdi
	movq	_cxusb_dualdig4_rev2_config@GOTPCREL(%rip), %rdx
	movl	$128, %esi
	callq	*8(%r14)
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set interface failed"

	.comm	_CMD_DIGITAL,4,2                ## @CMD_DIGITAL
	.comm	_dib7000p_attach,4,2            ## @dib7000p_attach
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_cxusb_dualdig4_rev2_config,4,2 ## @cxusb_dualdig4_rev2_config
L_.str.1:                               ## @.str.1
	.asciz	"Unable to enumerate dib7000p\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cxusb_dualdig4_rev2_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_dualdig4_rev2_frontend_attach
_cxusb_dualdig4_rev2_frontend_attach:   ; @cxusb_dualdig4_rev2_frontend_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x8, x20, [x0, #8]
	ldr	w0, [x8, #4]
	mov	w1, #0
	mov	w2, #1
	bl	_usb_set_interface
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _CMD_DIGITAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_DIGITAL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	ldr	x0, [x19, #8]
	mov	w1, #2
	mov	w2, #1
	bl	_cxusb_bluebird_gpio_pulse
Lloh5:
	adrp	x8, _dib7000p_attach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dib7000p_attach@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_dvb_attach
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x3, _cxusb_dualdig4_rev2_config@GOTPAGE
Lloh9:
	ldr	x3, [x3, _cxusb_dualdig4_rev2_config@GOTPAGEOFF]
	mov	w1, #1
	mov	w2, #18
	blr	x8
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x2, _cxusb_dualdig4_rev2_config@GOTPAGE
Lloh11:
	ldr	x2, [x2, _cxusb_dualdig4_rev2_config@GOTPAGEOFF]
	mov	w1, #128
	blr	x8
	ldr	x8, [x19]
	str	w0, [x8]
	cbz	w0, LBB0_8
; %bb.5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_7:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set interface failed"

	.comm	_CMD_DIGITAL,4,2                ; @CMD_DIGITAL
	.comm	_dib7000p_attach,4,2            ; @dib7000p_attach
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_cxusb_dualdig4_rev2_config,4,2 ; @cxusb_dualdig4_rev2_config
l_.str.1:                               ; @.str.1
	.asciz	"Unable to enumerate dib7000p\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cxusb_dualdig4_rev2_frontend_attach
.subsections_via_symbols
