	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_tuner_mode                 ## -- Begin function set_tuner_mode
	.p2align	4, 0x90
_set_tuner_mode:                        ## @set_tuner_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_POSEIDON_STATE_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_TUNE_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	%sil, %edx
	leaq	-8(%rbp), %rcx
	movl	%eax, %esi
	callq	_send_set_req
	movq	%rax, %rcx
	xorl	%eax, %eax
	orq	-8(%rbp), %rcx
	je	LBB0_5
## %bb.3:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POSEIDON_STATE_DISCONNECT,4,2  ## @POSEIDON_STATE_DISCONNECT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TUNE_MODE_SELECT,4,2           ## @TUNE_MODE_SELECT
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_tuner_mode                 ; -- Begin function set_tuner_mode
	.p2align	2
_set_tuner_mode:                        ; @set_tuner_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _POSEIDON_STATE_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POSEIDON_STATE_DISCONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x2, x1
Lloh5:
	adrp	x8, _TUNE_MODE_SELECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TUNE_MODE_SELECT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #8
	bl	_send_set_req
	ldr	x8, [sp, #8]
	orr	x8, x0, x8
	cbz	x8, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_POSEIDON_STATE_DISCONNECT,4,2  ; @POSEIDON_STATE_DISCONNECT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TUNE_MODE_SELECT,4,2           ; @TUNE_MODE_SELECT
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
