	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_dma_configure
_pci_dma_configure:                     ## @pci_dma_configure
	.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	%rdi, %r14
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_get_host_bridge_device
	movq	%rax, %r15
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_of_dma_configure
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_has_acpi_companion
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r15), %edi
	callq	_to_acpi_device_node
	movq	%rax, %rdi
	callq	_acpi_get_dma_attr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_acpi_dma_configure
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_pci_put_host_bridge_device
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.no_dead_strip	_pci_dma_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_dma_configure
_pci_dma_configure:                     ; @pci_dma_configure
	.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	x20, x0
	bl	_to_pci_dev
	bl	_pci_get_host_bridge_device
	mov	x19, x0
Lloh0:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x1, [x8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w2, #1
	bl	_of_dma_configure
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_has_acpi_companion
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x19]
	bl	_to_acpi_device_node
	bl	_acpi_get_dma_attr
	mov	x1, x0
	mov	x0, x20
	bl	_acpi_dma_configure
LBB0_6:
	mov	x20, x0
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_pci_put_host_bridge_device
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.no_dead_strip	_pci_dma_configure
.subsections_via_symbols
