	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_lock_door
_pkt_lock_door:                         ## @pkt_lock_door
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CGC_DATA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_init_cdrom_command
	movq	_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-32(%rbp), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, 16(%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pkt_generic_packet
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_NONE,4,2              ## @CGC_DATA_NONE
	.comm	_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL,4,2 ## @GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
	.no_dead_strip	_pkt_lock_door
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_lock_door
_pkt_lock_door:                         ; @pkt_lock_door
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CGC_DATA_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CGC_DATA_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #0
	bl	_init_cdrom_command
Lloh3:
	adrp	x8, _GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9]
	cmp	w19, #0
	cset	w8, ne
	str	w8, [x9, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_pkt_generic_packet
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_NONE,4,2              ; @CGC_DATA_NONE
	.comm	_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL,4,2 ; @GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
	.no_dead_strip	_pkt_lock_door
.subsections_via_symbols
