	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_set_media_lock             ## -- Begin function ide_set_media_lock
	.p2align	4, 0x90
_ide_set_media_lock:                    ## @ide_set_media_lock
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IDE_DFLAG_DOORLOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_ide_init_pc
	movq	_ALLOW_MEDIUM_REMOVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	%r15d, 16(%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ide_queue_pc_tail
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_DFLAG_DOORLOCKING,4,2      ## @IDE_DFLAG_DOORLOCKING
	.comm	_ALLOW_MEDIUM_REMOVAL,4,2       ## @ALLOW_MEDIUM_REMOVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_set_media_lock             ; -- Begin function ide_set_media_lock
	.p2align	2
_ide_set_media_lock:                    ; @ide_set_media_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IDE_DFLAG_DOORLOCKING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_DFLAG_DOORLOCKING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_ide_init_pc
Lloh3:
	adrp	x8, _ALLOW_MEDIUM_REMOVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALLOW_MEDIUM_REMOVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9]
	str	w21, [x9, #16]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_ide_queue_pc_tail
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_DFLAG_DOORLOCKING,4,2      ; @IDE_DFLAG_DOORLOCKING
	.comm	_ALLOW_MEDIUM_REMOVAL,4,2       ; @ALLOW_MEDIUM_REMOVAL
.subsections_via_symbols
