	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_read_pci_configuration ## -- Begin function acpi_os_read_pci_configuration
	.p2align	4, 0x90
_acpi_os_read_pci_configuration:        ## @acpi_os_read_pci_configuration
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	cmpl	$8, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$32, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	$16, %ecx
	jne	LBB0_11
## %bb.4:
	movl	$2, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_7:
	movl	$4, %r15d
LBB0_8:
	movl	12(%rdi), %r12d
	movl	8(%rdi), %r13d
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	callq	_PCI_DEVFN
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	callq	_raw_pci_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_read_pci_configuration ; -- Begin function acpi_os_read_pci_configuration
	.p2align	2
_acpi_os_read_pci_configuration:        ; @acpi_os_read_pci_configuration
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x2, LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	cmp	w3, #8
	b.eq	LBB0_6
; %bb.2:
	cmp	w3, #32
	b.eq	LBB0_7
; %bb.3:
	cmp	w3, #16
	b.ne	LBB0_9
; %bb.4:
	mov	w21, #2
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	w21, #1
	b	LBB0_8
LBB0_7:
	mov	w21, #4
LBB0_8:
	ldp	w23, w22, [x0, #8]
	ldp	w1, w8, [x0]
	mov	x0, x8
	bl	_PCI_DEVFN
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	mov	x4, x21
	mov	x5, x19
	bl	_raw_pci_read
Lloh2:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _AE_OK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AE_OK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
