	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poseidon_check_mode_dvbt
_poseidon_check_mode_dvbt:              ## @poseidon_check_mode_dvbt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	callq	_schedule_timeout
	movl	(%rbx), %edi
	movq	_BULK_ALTERNATE_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_TLG_MODE_CAPS_DVB_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_tuner_mode
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_SGNL_SRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLG_SIG_SRC_ANTENNA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_send_set_req
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	-12(%rbp), %edx
	orl	%ecx, %edx
	cmovnel	%ecx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_BULK_ALTERNATE_IFACE,4,2       ## @BULK_ALTERNATE_IFACE
	.comm	_TLG_MODE_CAPS_DVB_T,4,2        ## @TLG_MODE_CAPS_DVB_T
	.comm	_SGNL_SRC_SEL,4,2               ## @SGNL_SRC_SEL
	.comm	_TLG_SIG_SRC_ANTENNA,4,2        ## @TLG_SIG_SRC_ANTENNA
	.no_dead_strip	_poseidon_check_mode_dvbt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poseidon_check_mode_dvbt
_poseidon_check_mode_dvbt:              ; @poseidon_check_mode_dvbt
	.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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_set_current_state
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	bl	_schedule_timeout
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _BULK_ALTERNATE_IFACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BULK_ALTERNATE_IFACE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_usb_set_interface
	cbnz	w0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _TLG_MODE_CAPS_DVB_T@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TLG_MODE_CAPS_DVB_T@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_tuner_mode
	cbnz	w0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _SGNL_SRC_SEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SGNL_SRC_SEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _TLG_SIG_SRC_ANTENNA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TLG_SIG_SRC_ANTENNA@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_send_set_req
	ldr	w8, [sp, #12]
	orr	w8, w8, w0
	cmp	w8, #0
	csel	w0, wzr, w0, eq
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_BULK_ALTERNATE_IFACE,4,2       ; @BULK_ALTERNATE_IFACE
	.comm	_TLG_MODE_CAPS_DVB_T,4,2        ; @TLG_MODE_CAPS_DVB_T
	.comm	_SGNL_SRC_SEL,4,2               ; @SGNL_SRC_SEL
	.comm	_TLG_SIG_SRC_ANTENNA,4,2        ; @TLG_SIG_SRC_ANTENNA
	.no_dead_strip	_poseidon_check_mode_dvbt
.subsections_via_symbols
