	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_lgdt3303_frontend_attach
_cxusb_lgdt3303_frontend_attach:        ## @cxusb_lgdt3303_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	$7, %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	_lgdt330x_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rcx
	movq	_cxusb_lgdt3303_config@GOTPCREL(%rip), %rsi
	movl	$14, %edx
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovnel	%r14d, %ecx
	movl	%ecx, %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	_lgdt330x_attach,4,2            ## @lgdt330x_attach
	.comm	_cxusb_lgdt3303_config,4,2      ## @cxusb_lgdt3303_config
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cxusb_lgdt3303_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_lgdt3303_frontend_attach
_cxusb_lgdt3303_frontend_attach:        ; @cxusb_lgdt3303_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, #7
	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
Lloh5:
	adrp	x8, _lgdt330x_attach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lgdt330x_attach@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x3, [x19, #8]
Lloh8:
	adrp	x1, _cxusb_lgdt3303_config@GOTPAGE
Lloh9:
	ldr	x1, [x1, _cxusb_lgdt3303_config@GOTPAGEOFF]
	mov	w2, #14
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set interface failed"

	.comm	_CMD_DIGITAL,4,2                ; @CMD_DIGITAL
	.comm	_lgdt330x_attach,4,2            ; @lgdt330x_attach
	.comm	_cxusb_lgdt3303_config,4,2      ; @cxusb_lgdt3303_config
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cxusb_lgdt3303_frontend_attach
.subsections_via_symbols
