	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_pci_check_ejectable       ## -- Begin function acpi_pci_check_ejectable
	.p2align	4, 0x90
_acpi_pci_check_ejectable:              ## @acpi_pci_check_ejectable
	.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	%rsi, %r14
	callq	_acpi_pci_get_bridge_handle
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_acpi_get_parent
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	cmpq	-32(%rbp), %rbx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_pcihp_is_ejectable
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_pci_check_ejectable       ; -- Begin function acpi_pci_check_ejectable
	.p2align	2
_acpi_pci_check_ejectable:              ; @acpi_pci_check_ejectable
	.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
	bl	_acpi_pci_get_bridge_handle
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_acpi_get_parent
	bl	_ACPI_FAILURE
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x20, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pcihp_is_ejectable
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
