	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_function
_configure_function:                    ## @configure_function
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	leaq	4(%r14), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ocxl_config_read_function
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_set_function_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_assign_function_actag
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_set_function_pasid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_ocxl_link_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ocxl_config_set_TL
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ocxl_link_release
	movl	%r15d, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_enable_device failed: %d\n"

	.no_dead_strip	_configure_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_function
_configure_function:                    ; @configure_function
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_9
LBB0_2:
	add	x21, x20, #4
	mov	x0, x19
	mov	x1, x21
	bl	_ocxl_config_read_function
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_set_function_device
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_assign_function_actag
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_set_function_pasid
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_ocxl_link_setup
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ocxl_config_set_TL
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ocxl_link_release
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_enable_device failed: %d\n"

	.no_dead_strip	_configure_function
.subsections_via_symbols
