	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28174_dvb_init_hauppauge_wintv_dualhd_dvb
_em28174_dvb_init_hauppauge_wintv_dualhd_dvb: ## @em28174_dvb_init_hauppauge_wintv_dualhd_dvb
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movq	$0, -112(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	16(%r12), %rax
	movq	%rax, -80(%rbp)
	movq	_SI2168_TS_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$1, -96(%rbp)
	movq	_PRIMARY_TS@GOTPCREL(%rip), %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %rdx
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	setne	%cl
	shlq	$2, %rdx
	addq	24(%rdi), %rdx
	leal	(%rcx,%rcx,2), %ecx
	orl	$100, %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	-96(%rbp), %r8
	xorl	%esi, %esi
	callq	_dvb_module_probe
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-144(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)
	movl	$1, -140(%rbp)
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	setne	%cl
	movq	-48(%rbp), %rdx
	leal	(%rcx,%rcx,2), %ecx
	orl	$96, %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	callq	_dvb_module_probe
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r12), %rdi
	callq	_dvb_module_release
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI2168_TS_SERIAL,4,2           ## @SI2168_TS_SERIAL
	.comm	_PRIMARY_TS,8,3                 ## @PRIMARY_TS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"si2168"

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

	.no_dead_strip	_em28174_dvb_init_hauppauge_wintv_dualhd_dvb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28174_dvb_init_hauppauge_wintv_dualhd_dvb
_em28174_dvb_init_hauppauge_wintv_dualhd_dvb: ; @em28174_dvb_init_hauppauge_wintv_dualhd_dvb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	str	xzr, [sp, #32]
	stp	q0, q0, [sp]
	sub	x8, x29, #40
	str	x8, [sp, #80]
	ldp	x8, x20, [x0, #24]
	ldr	x9, [x20, #16]
	str	x9, [sp, #64]
Lloh0:
	adrp	x9, _SI2168_TS_SERIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SI2168_TS_SERIAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #72]
	mov	w22, #1
	str	w22, [sp, #48]
Lloh3:
	adrp	x21, _PRIMARY_TS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PRIMARY_TS@GOTPAGEOFF]
	ldr	x9, [x21]
	ldp	x10, x11, [x0]
	add	x2, x8, x11, lsl #2
	cmp	x10, x9
	mov	w8, #103
	mov	w9, #100
	csel	w3, w9, w8, eq
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x4, sp, #48
	mov	x1, #0
	bl	_dvb_module_probe
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	str	x8, [sp, #16]
	str	w22, [sp, #4]
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldur	x2, [x29, #-40]
	cmp	x8, x9
	mov	w8, #99
	mov	w9, #96
	csel	w3, w9, w8, eq
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x4, sp
	mov	x1, #0
	bl	_dvb_module_probe
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, #8]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x0, [x20]
	bl	_dvb_module_release
LBB0_3:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SI2168_TS_SERIAL,4,2           ; @SI2168_TS_SERIAL
	.comm	_PRIMARY_TS,8,3                 ; @PRIMARY_TS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"si2168"

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

	.no_dead_strip	_em28174_dvb_init_hauppauge_wintv_dualhd_dvb
.subsections_via_symbols
