	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_identify
_pcd_identify:                          ## @pcd_identify
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movabsq	$154618822674, %rax             ## imm = 0x2400000012
	movq	%rax, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	_pcd_bufblk@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_pcd_buffer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %r8
	leaq	-56(%rbp), %rsi
	movl	$36, %edx
	callq	_pcd_atapi
	movl	$-1, %r12d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movq	(%rbx), %rsi
	movl	(%rsi), %eax
	andl	$31, %eax
	cmpl	$5, %eax
	jne	LBB0_2
## %bb.4:
	addq	$64, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_memcpy
	movb	$0, 16(%r14)
	cmpb	$32, 15(%r14)
	jg	LBB0_21
## %bb.5:
	movb	$0, 15(%r14)
	cmpb	$32, 14(%r14)
	jg	LBB0_21
## %bb.6:
	movb	$0, 14(%r14)
	cmpb	$32, 13(%r14)
	jg	LBB0_21
## %bb.7:
	movb	$0, 13(%r14)
	cmpb	$32, 12(%r14)
	jg	LBB0_21
## %bb.8:
	movb	$0, 12(%r14)
	cmpb	$32, 11(%r14)
	jg	LBB0_21
## %bb.9:
	movb	$0, 11(%r14)
	cmpb	$32, 10(%r14)
	jg	LBB0_21
## %bb.10:
	movb	$0, 10(%r14)
	cmpb	$32, 9(%r14)
	jg	LBB0_21
## %bb.11:
	movb	$0, 9(%r14)
	cmpb	$32, 8(%r14)
	jg	LBB0_21
## %bb.12:
	movb	$0, 8(%r14)
	cmpb	$32, 7(%r14)
	jg	LBB0_21
## %bb.13:
	movb	$0, 7(%r14)
	cmpb	$32, 6(%r14)
	jg	LBB0_21
## %bb.14:
	movb	$0, 6(%r14)
	cmpb	$32, 5(%r14)
	jg	LBB0_21
## %bb.15:
	movb	$0, 5(%r14)
	cmpb	$32, 4(%r14)
	jg	LBB0_21
## %bb.16:
	movb	$0, 4(%r14)
	cmpb	$32, 3(%r14)
	jg	LBB0_21
## %bb.17:
	movb	$0, 3(%r14)
	cmpb	$32, 2(%r14)
	jg	LBB0_21
## %bb.18:
	movb	$0, 2(%r14)
	cmpb	$32, 1(%r14)
	jg	LBB0_21
## %bb.19:
	movb	$0, 1(%r14)
	cmpb	$32, (%r14)
	jg	LBB0_21
## %bb.20:
	movb	$0, (%r14)
LBB0_21:
	movl	8(%r15), %esi
	cmpq	$0, (%r15)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_22
LBB0_2:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.3:
	movl	8(%r15), %esi
	cmpq	$0, (%r15)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.pcd_identify.id_cmd:          ## @__const.pcd_identify.id_cmd
	.asciz	"\022\000\000\000$\000\000\000\000\000\000"

	.comm	_pcd_bufblk,4,2                 ## @pcd_bufblk
	.comm	_pcd_buffer,8,3                 ## @pcd_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"identify"

	.comm	_verbose,8,3                    ## @verbose
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s is not a CD-ROM\n"

L_.str.2:                               ## @.str.2
	.asciz	"Slave"

L_.str.3:                               ## @.str.3
	.asciz	"Master"

L_.str.4:                               ## @.str.4
	.asciz	"%s: %s: %s\n"

	.no_dead_strip	_pcd_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_identify
_pcd_identify:                          ; @pcd_identify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [sp, #16]
	mov	x8, #18
	movk	x8, #36, lsl #32
Lloh3:
	adrp	x9, _pcd_bufblk@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pcd_bufblk@GOTPAGEOFF]
	str	x8, [sp, #8]
	mov	w21, #-1
Lloh5:
	str	w21, [x9]
Lloh6:
	adrp	x22, _pcd_buffer@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pcd_buffer@GOTPAGEOFF]
	ldr	x3, [x22]
Lloh8:
	adrp	x4, l_.str@PAGE
Lloh9:
	add	x4, x4, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w2, #36
	bl	_pcd_atapi
	cbnz	w0, LBB0_23
; %bb.1:
	ldr	x8, [x22]
	ldr	w9, [x8]
	and	w9, w9, #0x1f
	cmp	w9, #5
	b.ne	LBB0_20
; %bb.2:
	add	x1, x8, #64
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
	strb	wzr, [x19, #16]
	ldrsb	w8, [x19, #15]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.3:
	strb	wzr, [x19, #15]
	ldrsb	w8, [x19, #14]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.4:
	strb	wzr, [x19, #14]
	ldrsb	w8, [x19, #13]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.5:
	strb	wzr, [x19, #13]
	ldrsb	w8, [x19, #12]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.6:
	strb	wzr, [x19, #12]
	ldrsb	w8, [x19, #11]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.7:
	strb	wzr, [x19, #11]
	ldrsb	w8, [x19, #10]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.8:
	strb	wzr, [x19, #10]
	ldrsb	w8, [x19, #9]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.9:
	strb	wzr, [x19, #9]
	ldrsb	w8, [x19, #8]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.10:
	strb	wzr, [x19, #8]
	ldrsb	w8, [x19, #7]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.11:
	strb	wzr, [x19, #7]
	ldrsb	w8, [x19, #6]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.12:
	strb	wzr, [x19, #6]
	ldrsb	w8, [x19, #5]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.13:
	strb	wzr, [x19, #5]
	ldrsb	w8, [x19, #4]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.14:
	strb	wzr, [x19, #4]
	ldrsb	w8, [x19, #3]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.15:
	strb	wzr, [x19, #3]
	ldrsb	w8, [x19, #2]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.16:
	strb	wzr, [x19, #2]
	ldrsb	w8, [x19, #1]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.17:
	strb	wzr, [x19, #1]
	ldrsb	w8, [x19]
	cmp	w8, #32
	b.gt	LBB0_19
; %bb.18:
	strb	wzr, [x19]
LBB0_19:
	ldr	w1, [x20, #8]
	ldr	x8, [x20]
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh12:
	adrp	x10, l_.str.3@PAGE
Lloh13:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	str	x19, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
	mov	w21, #0
	b	LBB0_23
LBB0_20:
Lloh16:
	adrp	x8, _verbose@GOTPAGE
Lloh17:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	w1, [x20, #8]
	ldr	x8, [x20]
Lloh19:
	adrp	x9, l_.str.2@PAGE
Lloh20:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh21:
	adrp	x10, l_.str.3@PAGE
Lloh22:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
LBB0_22:
	mov	w21, #-1
LBB0_23:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.pcd_identify.id_cmd:          ; @__const.pcd_identify.id_cmd
	.asciz	"\022\000\000\000$\000\000\000\000\000\000"

	.comm	_pcd_bufblk,4,2                 ; @pcd_bufblk
	.comm	_pcd_buffer,8,3                 ; @pcd_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"identify"

	.comm	_verbose,8,3                    ; @verbose
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s is not a CD-ROM\n"

l_.str.2:                               ; @.str.2
	.asciz	"Slave"

l_.str.3:                               ; @.str.3
	.asciz	"Master"

l_.str.4:                               ; @.str.4
	.asciz	"%s: %s: %s\n"

	.no_dead_strip	_pcd_identify
.subsections_via_symbols
