	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_sector
_check_sector:                          ## @check_sector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_read_oob_sector_health@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	callq	_read_sectoroob
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_oobbuf@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_read_uint8
	cmpl	$255, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_read_uint8
	xorl	%ebx, %ebx
	cmpl	$255, %eax
	sete	%bl
	jmp	LBB0_5
LBB0_1:
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_oob_sector_health,4,2     ## @read_oob_sector_health
	.comm	_oobbuf,4,2                     ## @oobbuf
	.no_dead_strip	_check_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_sector
_check_sector:                          ; @check_sector
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _read_oob_sector_health@GOTPAGE
Lloh1:
	ldr	x8, [x8, _read_oob_sector_health@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	bl	_read_sectoroob
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x19, _oobbuf@GOTPAGE
Lloh4:
	ldr	x19, [x19, _oobbuf@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_read_uint8
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #255
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_read_uint8
	cmp	w0, #255
	cset	w0, eq
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_read_oob_sector_health,4,2     ; @read_oob_sector_health
	.comm	_oobbuf,4,2                     ; @oobbuf
	.no_dead_strip	_check_sector
.subsections_via_symbols
