	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2831u_frontend_attach
_rtl2831u_frontend_attach:              ## @rtl2831u_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_adap_to_d
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_d_to_priv
	movq	%rax, %r15
	leaq	24(%rax), %rbx
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.3:
	movq	_rtl2830_qt1010_platform_data@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_rtl2830_mt2060_platform_data@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_rtl2830_mxl5005s_platform_data@GOTPCREL(%rip), %rax
LBB0_4:
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbx)
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strscpy
	movl	$16, -56(%rbp)
	movq	%rbx, -48(%rbp)
	movl	-52(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_request_module
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%r13, %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	%rbx, %rdi
	callq	*32(%r15)
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	*24(%r15)
	movl	%eax, 16(%r15)
	movq	%rbx, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	(%r12), %rdi
	movl	20(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_rtl2830_qt1010_platform_data,16,3 ## @rtl2830_qt1010_platform_data
	.comm	_rtl2830_mt2060_platform_data,16,3 ## @rtl2830_mt2060_platform_data
	.comm	_rtl2830_mxl5005s_platform_data,16,3 ## @rtl2830_mxl5005s_platform_data
L_.str.1:                               ## @.str.1
	.asciz	"unknown tuner %s\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"rtl2830"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2831u_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2831u_frontend_attach
_rtl2831u_frontend_attach:              ; @rtl2831u_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_adap_to_d
	mov	x19, x0
	bl	_d_to_priv
	mov	x20, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x22, x20
	ldr	w8, [x22], #24
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.3:
Lloh2:
	adrp	x8, _rtl2830_qt1010_platform_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rtl2830_qt1010_platform_data@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _rtl2830_mt2060_platform_data@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rtl2830_mt2060_platform_data@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _rtl2830_mxl5005s_platform_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rtl2830_mxl5005s_platform_data@GOTPAGEOFF]
LBB0_6:
	ldr	q0, [x8]
	str	q0, [x22]
	mov	w23, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #20]
Lloh8:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strscpy
	str	w23, [sp, #16]
	str	x22, [sp, #24]
	ldr	w1, [sp, #20]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_request_module
	add	x0, x19, #8
	add	x1, sp, #16
	bl	_i2c_new_device
	cbz	x0, LBB0_12
; %bb.7:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.8:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_11
; %bb.9:
	ldr	x8, [x20, #32]
	mov	x0, x22
	blr	x8
	ldr	x8, [x21]
	str	w0, [x8]
	ldr	x8, [x20, #24]
	mov	x0, x22
	blr	x8
	mov	w21, #0
	str	w0, [x20, #16]
	str	x22, [x20, #8]
	b	LBB0_13
LBB0_10:
	ldr	x0, [x19]
	ldr	w2, [x20, #20]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_i2c_unregister_device
LBB0_12:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19]
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_rtl2830_qt1010_platform_data,16,3 ; @rtl2830_qt1010_platform_data
	.comm	_rtl2830_mt2060_platform_data,16,3 ; @rtl2830_mt2060_platform_data
	.comm	_rtl2830_mxl5005s_platform_data,16,3 ; @rtl2830_mxl5005s_platform_data
l_.str.1:                               ; @.str.1
	.asciz	"unknown tuner %s\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"rtl2830"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2831u_frontend_attach
.subsections_via_symbols
