	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poseidon_check_mode_radio
_poseidon_check_mode_radio:             ## @poseidon_check_mode_radio
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_schedule_timeout
	movl	4(%rbx), %edi
	movq	_BULK_ALTERNATE_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_TLG_MODE_FM_RADIO@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	-36(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_send_set_req
	movq	_TUNER_AUD_ANA_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_send_set_req
	movl	%eax, %r12d
	movq	_TUNER_AUD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLG_TUNE_TVAUDIO_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_send_set_req
	movl	%eax, %r15d
	orl	%r12d, %r15d
	movq	_AUDIO_SAMPLE_RATE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATV_AUDIO_RATE_48K@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_send_set_req
	movl	%eax, %r12d
	movq	_TUNE_FREQ_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TUNER_FREQ_MIN_FM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_send_set_req
	orl	%r12d, %eax
	orl	%r15d, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_FM_RADIO,4,2          ## @TLG_MODE_FM_RADIO
	.comm	_SGNL_SRC_SEL,4,2               ## @SGNL_SRC_SEL
	.comm	_TLG_SIG_SRC_ANTENNA,4,2        ## @TLG_SIG_SRC_ANTENNA
	.comm	_TUNER_AUD_ANA_STD,4,2          ## @TUNER_AUD_ANA_STD
	.comm	_TUNER_AUD_MODE,4,2             ## @TUNER_AUD_MODE
	.comm	_TLG_TUNE_TVAUDIO_MODE_STEREO,4,2 ## @TLG_TUNE_TVAUDIO_MODE_STEREO
	.comm	_AUDIO_SAMPLE_RATE_SEL,4,2      ## @AUDIO_SAMPLE_RATE_SEL
	.comm	_ATV_AUDIO_RATE_48K,4,2         ## @ATV_AUDIO_RATE_48K
	.comm	_TUNE_FREQ_SELECT,4,2           ## @TUNE_FREQ_SELECT
	.comm	_TUNER_FREQ_MIN_FM,4,2          ## @TUNER_FREQ_MIN_FM
	.no_dead_strip	_poseidon_check_mode_radio
.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_radio
_poseidon_check_mode_radio:             ; @poseidon_check_mode_radio
	.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
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]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_schedule_timeout
	ldr	w0, [x19, #4]
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
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _TLG_MODE_FM_RADIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TLG_MODE_FM_RADIO@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
Lloh18:
	adrp	x8, _TUNER_AUD_ANA_STD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TUNER_AUD_ANA_STD@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19]
	add	x3, sp, #12
	mov	x0, x19
	bl	_send_set_req
	mov	x20, x0
Lloh21:
	adrp	x8, _TUNER_AUD_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TUNER_AUD_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _TLG_TUNE_TVAUDIO_MODE_STEREO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TLG_TUNE_TVAUDIO_MODE_STEREO@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_send_set_req
	orr	w20, w0, w20
Lloh27:
	adrp	x8, _AUDIO_SAMPLE_RATE_SEL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AUDIO_SAMPLE_RATE_SEL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _ATV_AUDIO_RATE_48K@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ATV_AUDIO_RATE_48K@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_send_set_req
	orr	w20, w20, w0
Lloh33:
	adrp	x8, _TUNE_FREQ_SELECT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TUNE_FREQ_SELECT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _TUNER_FREQ_MIN_FM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TUNER_FREQ_MIN_FM@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_send_set_req
	orr	w0, w20, w0
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	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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_FM_RADIO,4,2          ; @TLG_MODE_FM_RADIO
	.comm	_SGNL_SRC_SEL,4,2               ; @SGNL_SRC_SEL
	.comm	_TLG_SIG_SRC_ANTENNA,4,2        ; @TLG_SIG_SRC_ANTENNA
	.comm	_TUNER_AUD_ANA_STD,4,2          ; @TUNER_AUD_ANA_STD
	.comm	_TUNER_AUD_MODE,4,2             ; @TUNER_AUD_MODE
	.comm	_TLG_TUNE_TVAUDIO_MODE_STEREO,4,2 ; @TLG_TUNE_TVAUDIO_MODE_STEREO
	.comm	_AUDIO_SAMPLE_RATE_SEL,4,2      ; @AUDIO_SAMPLE_RATE_SEL
	.comm	_ATV_AUDIO_RATE_48K,4,2         ; @ATV_AUDIO_RATE_48K
	.comm	_TUNE_FREQ_SELECT,4,2           ; @TUNE_FREQ_SELECT
	.comm	_TUNER_FREQ_MIN_FM,4,2          ; @TUNER_FREQ_MIN_FM
	.no_dead_strip	_poseidon_check_mode_radio
.subsections_via_symbols
