	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_status
_read_status:                           ## @read_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	_MCI_CMD_GETSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_ddb_mci_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_get_info
	movq	%r15, %rdi
	callq	_get_strength
	movq	-40(%rbp), %rax
	movq	_SX8_DEMOD_WAIT_MATYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$15, (%r14)
LBB0_3:
	movq	_SX8_DEMOD_LOCKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	$31, (%r14)
	movq	%r15, %rdi
	callq	_get_snr
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_CMD_GETSTATUS,4,2          ## @MCI_CMD_GETSTATUS
	.comm	_SX8_DEMOD_WAIT_MATYPE,8,3      ## @SX8_DEMOD_WAIT_MATYPE
	.comm	_SX8_DEMOD_LOCKED,8,3           ## @SX8_DEMOD_LOCKED
	.no_dead_strip	_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_status
_read_status:                           ; @read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _MCI_CMD_GETSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_CMD_GETSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w8, [x0]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_ddb_mci_cmd
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	str	wzr, [x20]
	mov	x0, x19
	bl	_get_info
	mov	x0, x19
	bl	_get_strength
	ldr	x8, [sp]
Lloh3:
	adrp	x9, _SX8_DEMOD_WAIT_MATYPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SX8_DEMOD_WAIT_MATYPE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #15
	str	w9, [x20]
LBB0_3:
Lloh6:
	adrp	x9, _SX8_DEMOD_LOCKED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SX8_DEMOD_LOCKED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #31
	str	w8, [x20]
	mov	x0, x19
	bl	_get_snr
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_CMD_GETSTATUS,4,2          ; @MCI_CMD_GETSTATUS
	.comm	_SX8_DEMOD_WAIT_MATYPE,8,3      ; @SX8_DEMOD_WAIT_MATYPE
	.comm	_SX8_DEMOD_LOCKED,8,3           ; @SX8_DEMOD_LOCKED
	.no_dead_strip	_read_status
.subsections_via_symbols
