	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NetBSDCDReadSectorFAD
_NetBSDCDReadSectorFAD:                 ## @NetBSDCDReadSectorFAD
	.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	_hCDROM@GOTPCREL(%rip), %r15
	cmpl	$-1, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	_NetBSDCDReadSectorFAD.syncHdr(%rip), %rsi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_memcpy
	movl	(%r15), %edi
	shll	$11, %ebx
	addl	$-307200, %ebx                  ## imm = 0xFFFB5000
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_lseek
	movl	(%r15), %edi
	addq	$16, %r14
	movq	%r14, %rsi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_read
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @NetBSDCDReadSectorFAD.syncHdr
_NetBSDCDReadSectorFAD.syncHdr:
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_hCDROM,4,2                     ## @hCDROM
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_NetBSDCDReadSectorFAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NetBSDCDReadSectorFAD
_NetBSDCDReadSectorFAD:                 ; @NetBSDCDReadSectorFAD
	.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
Lloh0:
	adrp	x21, _hCDROM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hCDROM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x1, _NetBSDCDReadSectorFAD.syncHdr@PAGE
Lloh3:
	add	x1, x1, _NetBSDCDReadSectorFAD.syncHdr@PAGEOFF
	mov	x0, x19
	mov	w2, #64
	bl	_memcpy
	ldr	w0, [x21]
	lsl	w8, w20, #11
	sub	w1, w8, #75, lsl #12            ; =307200
Lloh4:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_lseek
	ldr	w0, [x21]
	add	x1, x19, #16
	mov	w2, #2048
	bl	_read
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @NetBSDCDReadSectorFAD.syncHdr
_NetBSDCDReadSectorFAD.syncHdr:
	.long	0                               ; 0x0
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_hCDROM,4,2                     ; @hCDROM
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_NetBSDCDReadSectorFAD
.subsections_via_symbols
