	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dibusb_dib3000mc_frontend_attach ## -- Begin function dibusb_dib3000mc_frontend_attach
	.p2align	4, 0x90
_dibusb_dib3000mc_frontend_attach:      ## @dibusb_dib3000mc_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	16(%rdi), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_VID_LITEON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_PID_LITEON_DVB_T_WARM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
LBB0_3:
	movq	_dib3000mc_attach@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	16(%rbx), %rsi
	movq	_DEFAULT_DIB3000P_I2C_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mod3000p_dib3000p_config@GOTPCREL(%rip), %rcx
	callq	_dvb_attach
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpq	$0, (%rcx)
	je	LBB0_8
LBB0_6:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	_dib3000mc_pid_parse@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rcx)
	movq	_dib3000mc_pid_control@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	jmp	LBB0_9
LBB0_4:
	movl	(%r14), %edi
	movq	16(%rbx), %rsi
	movq	_DEFAULT_DIB3000MC_I2C_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mod3000p_dib3000p_config@GOTPCREL(%rip), %rcx
	callq	_dvb_attach
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	cmpq	$0, (%rcx)
	jne	LBB0_6
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_VID_LITEON,8,3             ## @USB_VID_LITEON
	.comm	_USB_PID_LITEON_DVB_T_WARM,8,3  ## @USB_PID_LITEON_DVB_T_WARM
	.comm	_dib3000mc_attach,4,2           ## @dib3000mc_attach
	.comm	_DEFAULT_DIB3000P_I2C_ADDRESS,4,2 ## @DEFAULT_DIB3000P_I2C_ADDRESS
	.comm	_mod3000p_dib3000p_config,4,2   ## @mod3000p_dib3000p_config
	.comm	_DEFAULT_DIB3000MC_I2C_ADDRESS,4,2 ## @DEFAULT_DIB3000MC_I2C_ADDRESS
	.comm	_dib3000mc_pid_parse,4,2        ## @dib3000mc_pid_parse
	.comm	_dib3000mc_pid_control,4,2      ## @dib3000mc_pid_control
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dibusb_dib3000mc_frontend_attach ; -- Begin function dibusb_dib3000mc_frontend_attach
	.p2align	2
_dibusb_dib3000mc_frontend_attach:      ; @dibusb_dib3000mc_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, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
Lloh0:
	adrp	x8, _USB_VID_LITEON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_VID_LITEON@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh3:
	adrp	x8, _USB_PID_LITEON_DVB_T_WARM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_PID_LITEON_DVB_T_WARM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1000
	bl	_msleep
LBB0_3:
Lloh6:
	adrp	x20, _dib3000mc_attach@GOTPAGE
Lloh7:
	ldr	x20, [x20, _dib3000mc_attach@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x1, [x19, #16]
Lloh8:
	adrp	x8, _DEFAULT_DIB3000P_I2C_ADDRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEFAULT_DIB3000P_I2C_ADDRESS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, _mod3000p_dib3000p_config@GOTPAGE
Lloh12:
	ldr	x3, [x3, _mod3000p_dib3000p_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19, #8]
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.6:
	mov	w0, #0
Lloh13:
	adrp	x9, _dib3000mc_pid_parse@GOTPAGE
Lloh14:
	ldr	x9, [x9, _dib3000mc_pid_parse@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _dib3000mc_pid_control@GOTPAGE
Lloh17:
	ldr	x10, [x10, _dib3000mc_pid_control@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	b	LBB0_10
LBB0_7:
	ldr	w0, [x20]
	ldr	x1, [x19, #16]
Lloh19:
	adrp	x8, _DEFAULT_DIB3000MC_I2C_ADDRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEFAULT_DIB3000MC_I2C_ADDRESS@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, _mod3000p_dib3000p_config@GOTPAGE
Lloh23:
	ldr	x3, [x3, _mod3000p_dib3000p_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
LBB0_8:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_VID_LITEON,8,3             ; @USB_VID_LITEON
	.comm	_USB_PID_LITEON_DVB_T_WARM,8,3  ; @USB_PID_LITEON_DVB_T_WARM
	.comm	_dib3000mc_attach,4,2           ; @dib3000mc_attach
	.comm	_DEFAULT_DIB3000P_I2C_ADDRESS,4,2 ; @DEFAULT_DIB3000P_I2C_ADDRESS
	.comm	_mod3000p_dib3000p_config,4,2   ; @mod3000p_dib3000p_config
	.comm	_DEFAULT_DIB3000MC_I2C_ADDRESS,4,2 ; @DEFAULT_DIB3000MC_I2C_ADDRESS
	.comm	_dib3000mc_pid_parse,4,2        ; @dib3000mc_pid_parse
	.comm	_dib3000mc_pid_control,4,2      ; @dib3000mc_pid_control
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
