	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_epc_get                    ## -- Begin function pci_epc_get
	.p2align	4, 0x90
_pci_epc_get:                           ## @pci_epc_get
	.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
	movq	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	_pci_epc_class@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_class_dev_iter_init
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_class_dev_iter_next
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_to_pci_epc
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	leaq	-48(%rbp), %rdi
	callq	_class_dev_iter_exit
	movq	%rbx, %rdi
	callq	_get_device
	jmp	LBB0_6
LBB0_4:
	movl	(%r13), %r14d
LBB0_5:
	negl	%r14d
	leaq	-48(%rbp), %rdi
	callq	_class_dev_iter_exit
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pci_epc_class,4,2              ## @pci_epc_class
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_epc_get                    ; -- Begin function pci_epc_get
	.p2align	2
_pci_epc_get:                           ; @pci_epc_get
	.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	x19, x0
Lloh0:
	adrp	x21, _EINVAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh2:
	adrp	x8, _pci_epc_class@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pci_epc_class@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_class_dev_iter_init
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_class_dev_iter_next
	cbz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	bl	_dev_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_1
; %bb.3:
	mov	x0, x20
	bl	_to_pci_epc
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_class_dev_iter_exit
	mov	x0, x19
	bl	_get_device
	b	LBB0_7
LBB0_5:
	ldr	w22, [x21]
LBB0_6:
	neg	w19, w22
	add	x0, sp, #8
	bl	_class_dev_iter_exit
	mov	x0, x19
	bl	_ERR_PTR
	mov	x19, x0
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pci_epc_class,4,2              ; @pci_epc_class
.subsections_via_symbols
