	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttusb2_frontend_tda10023_attach
_ttusb2_frontend_tda10023_attach:       ## @ttusb2_frontend_tda10023_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	%esi, %esi
	movl	$3, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_2:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.7:
	movq	_tda10048_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_tda10048_config@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_ttusb2_ct3650_i2c_gate_ctrl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_10
LBB0_3:
	movq	_tda10023_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_tda10023_config@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$72, %ecx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_tt3650_ci_init
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_deb_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	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 to alts=3 failed"

	.comm	_tda10023_attach,4,2            ## @tda10023_attach
	.comm	_tda10023_config,4,2            ## @tda10023_config
L_.str.1:                               ## @.str.1
	.asciz	"TDA10023 attach failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_tda10048_attach,4,2            ## @tda10048_attach
	.comm	_tda10048_config,4,2            ## @tda10048_config
L_.str.2:                               ## @.str.2
	.asciz	"TDA10048 attach failed\n"

	.comm	_ttusb2_ct3650_i2c_gate_ctrl,4,2 ## @ttusb2_ct3650_i2c_gate_ctrl
	.no_dead_strip	_ttusb2_frontend_tda10023_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttusb2_frontend_tda10023_attach
_ttusb2_frontend_tda10023_attach:       ; @ttusb2_frontend_tda10023_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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
	mov	w1, #0
	mov	w2, #3
	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	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _tda10048_attach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tda10048_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh5:
	adrp	x1, _tda10048_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _tda10048_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x9, [x19]
	str	x0, [x9, #8]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x8, x0
	mov	w0, #0
Lloh7:
	adrp	x9, _ttusb2_ct3650_i2c_gate_ctrl@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ttusb2_ct3650_i2c_gate_ctrl@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x8, _tda10023_attach@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tda10023_attach@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
	mov	w8, #72
	str	x8, [sp]
Lloh13:
	adrp	x1, _tda10023_config@GOTPAGE
Lloh14:
	ldr	x1, [x1, _tda10023_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_tt3650_ci_init
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_deb_info
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set interface to alts=3 failed"

	.comm	_tda10023_attach,4,2            ; @tda10023_attach
	.comm	_tda10023_config,4,2            ; @tda10023_config
l_.str.1:                               ; @.str.1
	.asciz	"TDA10023 attach failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_tda10048_attach,4,2            ; @tda10048_attach
	.comm	_tda10048_config,4,2            ; @tda10048_config
l_.str.2:                               ; @.str.2
	.asciz	"TDA10048 attach failed\n"

	.comm	_ttusb2_ct3650_i2c_gate_ctrl,4,2 ; @ttusb2_ct3650_i2c_gate_ctrl
	.no_dead_strip	_ttusb2_frontend_tda10023_attach
.subsections_via_symbols
