	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_pci_init
_gen_pci_init:                          ## @gen_pci_init
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdx
	callq	_pci_parse_request_of_pci_ranges
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%r15), %edi
	leaq	-40(%rbp), %rdx
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_pci_ecam_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_gen_pci_unmap_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_pci_free_resource_list
LBB0_7:
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_8:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing \"reg\" property\n"

	.comm	_gen_pci_unmap_cfg,4,2          ## @gen_pci_unmap_cfg
	.no_dead_strip	_gen_pci_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_pci_init
_gen_pci_init:                          ; @gen_pci_init
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp]
	mov	x2, sp
	bl	_pci_parse_request_of_pci_ranges
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	w1, #0
	bl	_of_address_to_resource
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	ldr	x2, [sp]
	add	x1, sp, #8
	mov	x0, x20
	mov	x3, x22
	bl	_pci_ecam_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _gen_pci_unmap_cfg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gen_pci_unmap_cfg@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_pci_free_resource_list
LBB0_7:
	mov	x0, x21
	bl	_ERR_PTR
	mov	x22, x0
LBB0_8:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing \"reg\" property\n"

	.comm	_gen_pci_unmap_cfg,4,2          ; @gen_pci_unmap_cfg
	.no_dead_strip	_gen_pci_init
.subsections_via_symbols
