	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_get_status
_simple_get_status:                     ## @simple_get_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	callq	_tuner_read_status
	movl	%eax, %r15d
	movl	$0, (%r14)
	movl	%eax, %edi
	callq	_tuner_islocked
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_TUNER_STATUS_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_4:
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_tuner_stereo
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_TUNER_STATUS_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movl	%r15d, %edi
	callq	_tuner_afcstatus
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_tuner_dbg
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TUNER_STATUS_LOCKED,4,2        ## @TUNER_STATUS_LOCKED
	.comm	_TUNER_STATUS_STEREO,4,2        ## @TUNER_STATUS_STEREO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AFC Status: %d\n"

	.no_dead_strip	_simple_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_get_status
_simple_get_status:                     ; @simple_get_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x21, [x0]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x1
	bl	_tuner_read_status
	mov	x20, x0
	str	wzr, [x19]
	bl	_tuner_islocked
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _TUNER_STATUS_LOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUNER_STATUS_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_tuner_stereo
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _TUNER_STATUS_STEREO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TUNER_STATUS_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_tuner_afcstatus
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TUNER_STATUS_LOCKED,4,2        ; @TUNER_STATUS_LOCKED
	.comm	_TUNER_STATUS_STEREO,4,2        ; @TUNER_STATUS_STEREO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AFC Status: %d\n"

	.no_dead_strip	_simple_get_status
.subsections_via_symbols
