	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_start
_pcd_start:                             ## @pcd_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	$168, -32(%rbp)
	movq	_pcd_sector@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movl	$256, -24(%rbp)                 ## imm = 0x100
	sarl	$2, %eax
	movq	_pcd_bufblk@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movb	%al, -27(%rbp)
	movb	%ah, -28(%rbp)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movb	%cl, -29(%rbp)
	shrl	$24, %eax
	movb	%al, -30(%rbp)
	movq	_pcd_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rcx
	leaq	-32(%rbp), %rsi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_pcd_command
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$-1, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_next_request
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	_mdelay
	movq	_do_pcd_read_drq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pcd_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCD_TMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nice@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ps_set_intr
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.pcd_start.rd_cmd:             ## @__const.pcd_start.rd_cmd
	.asciz	"\250\000\000\000\000\000\000\000\000\001\000"

	.comm	_pcd_sector,4,2                 ## @pcd_sector
	.comm	_pcd_bufblk,4,2                 ## @pcd_bufblk
	.comm	_pcd_current,4,2                ## @pcd_current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read block"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_do_pcd_read_drq,4,2            ## @do_pcd_read_drq
	.comm	_pcd_ready,4,2                  ## @pcd_ready
	.comm	_PCD_TMO,4,2                    ## @PCD_TMO
	.comm	_nice,4,2                       ## @nice
	.no_dead_strip	_pcd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_start
_pcd_start:                             ; @pcd_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #168
	str	x8, [sp, #8]
	mov	w8, #256
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _pcd_sector@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcd_sector@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
Lloh6:
	adrp	x19, _pcd_bufblk@GOTPAGE
Lloh7:
	ldr	x19, [x19, _pcd_bufblk@GOTPAGEOFF]
	asr	w8, w8, #2
	str	w8, [x19]
	strb	w8, [sp, #13]
	lsr	w9, w8, #8
	strb	w9, [sp, #12]
	lsr	w9, w8, #16
	strb	w9, [sp, #11]
	lsr	w8, w8, #24
	strb	w8, [sp, #10]
Lloh8:
	adrp	x8, _pcd_current@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pcd_current@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w2, #2048
	bl	_pcd_command
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [x19]
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_next_request
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_mdelay
Lloh16:
	adrp	x8, _do_pcd_read_drq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _do_pcd_read_drq@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _pcd_ready@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pcd_ready@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _PCD_TMO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PCD_TMO@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _nice@GOTPAGE
Lloh26:
	ldr	x8, [x8, _nice@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	bl	_ps_set_intr
LBB0_3:
	ldr	x8, [sp, #24]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.pcd_start.rd_cmd:             ; @__const.pcd_start.rd_cmd
	.asciz	"\250\000\000\000\000\000\000\000\000\001\000"

	.comm	_pcd_sector,4,2                 ; @pcd_sector
	.comm	_pcd_bufblk,4,2                 ; @pcd_bufblk
	.comm	_pcd_current,4,2                ; @pcd_current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read block"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_do_pcd_read_drq,4,2            ; @do_pcd_read_drq
	.comm	_pcd_ready,4,2                  ; @pcd_ready
	.comm	_PCD_TMO,4,2                    ; @PCD_TMO
	.comm	_nice,4,2                       ; @nice
	.no_dead_strip	_pcd_start
.subsections_via_symbols
