	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_nano2_frontend_attach
_cxusb_nano2_frontend_attach:           ## @cxusb_nano2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	xorl	%r14d, %r14d
	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	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	movq	8(%rbx), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_cxusb_bluebird_gpio_rw
	movq	8(%rbx), %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_cxusb_bluebird_gpio_pulse
	movq	8(%rbx), %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	_cxusb_bluebird_gpio_pulse
	movq	_zl10353_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_cxusb_zl10353_xc3028_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_mt352_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_cxusb_mt352_xc3028_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	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	_zl10353_attach,4,2             ## @zl10353_attach
	.comm	_cxusb_zl10353_xc3028_config,4,2 ## @cxusb_zl10353_xc3028_config
	.comm	_mt352_attach,4,2               ## @mt352_attach
	.comm	_cxusb_mt352_xc3028_config,4,2  ## @cxusb_mt352_xc3028_config
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cxusb_nano2_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_nano2_frontend_attach
_cxusb_nano2_frontend_attach:           ; @cxusb_nano2_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
	ldr	x8, [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, #4
	mov	w2, #0
	bl	_cxusb_bluebird_gpio_rw
	ldr	x0, [x19, #8]
	mov	w1, #1
	mov	w2, #1
	bl	_cxusb_bluebird_gpio_pulse
	ldr	x0, [x19, #8]
	mov	w1, #2
	mov	w2, #1
	bl	_cxusb_bluebird_gpio_pulse
Lloh5:
	adrp	x8, _zl10353_attach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _zl10353_attach@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh8:
	adrp	x1, _cxusb_zl10353_xc3028_config@GOTPAGE
Lloh9:
	ldr	x1, [x1, _cxusb_zl10353_xc3028_config@GOTPAGEOFF]
	bl	_dvb_attach
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x8, [x9]
	cbnz	x8, LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _mt352_attach@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mt352_attach@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh13:
	adrp	x1, _cxusb_mt352_xc3028_config@GOTPAGE
Lloh14:
	ldr	x1, [x1, _cxusb_mt352_xc3028_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, 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	_zl10353_attach,4,2             ; @zl10353_attach
	.comm	_cxusb_zl10353_xc3028_config,4,2 ; @cxusb_zl10353_xc3028_config
	.comm	_mt352_attach,4,2               ; @mt352_attach
	.comm	_cxusb_mt352_xc3028_config,4,2  ; @cxusb_mt352_xc3028_config
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cxusb_nano2_frontend_attach
.subsections_via_symbols
