	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_acpi_pcie_notify_device_ready ## -- Begin function radeon_acpi_pcie_notify_device_ready
	.p2align	4, 0x90
_radeon_acpi_pcie_notify_device_ready:  ## @radeon_acpi_pcie_notify_device_ready
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	$0, 8(%rbx)
	je	LBB0_1
## %bb.4:
	movq	_ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_radeon_atcs_call
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION,4,2 ## @ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_acpi_pcie_notify_device_ready ; -- Begin function radeon_acpi_pcie_notify_device_ready
	.p2align	2
_radeon_acpi_pcie_notify_device_ready:  ; @radeon_acpi_pcie_notify_device_ready
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_radeon_atcs_call
	cbz	x0, LBB0_5
; %bb.3:
	bl	_kfree
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION,4,2 ; @ATCS_FUNCTION_PCIE_DEVICE_READY_NOTIFICATION
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
