	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afu_read_config
_afu_read_config:                       ## @afu_read_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, %r13d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_to_cr
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_kobj_to_dev
	movl	%eax, %edi
	callq	_to_cxl_afu
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.1:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	shll	$3, %eax
	addb	$56, %al
	movl	%eax, %ecx
	shrq	%cl, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%dl, 7(%rax,%r14)
	addq	$8, %r14
	addl	$8, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rcx
	movl	%r13d, %esi
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %r13d
	movq	%rcx, %r14
	cmpq	%rbx, %rcx
	jae	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15), %esi
	movl	%r13d, %edx
	andl	$-8, %edx
	movq	%r12, %rdi
	leaq	-56(%rbp), %rcx
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$-1, -56(%rbp)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %r14
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx
	movl	%r13d, %eax
	andl	$7, %eax
	leal	(,%rax,8), %ecx
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, (%rcx,%r14)
	leaq	1(%r14), %rcx
	leal	1(%r13), %esi
	cmpl	$7, %eax
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%rax,8), %ecx
	addb	$8, %cl
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, 1(%rcx,%r14)
	leaq	2(%r14), %rcx
	leal	2(%r13), %esi
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%rax,8), %ecx
	addb	$16, %cl
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, 2(%rcx,%r14)
	leaq	3(%r14), %rcx
	leal	3(%r13), %esi
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%rax,8), %ecx
	addb	$24, %cl
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, 3(%rcx,%r14)
	leaq	4(%r14), %rcx
	leal	4(%r13), %esi
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%rax,8), %ecx
	addb	$32, %cl
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, 4(%rcx,%r14)
	leaq	5(%r14), %rcx
	leal	5(%r13), %esi
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%rax,8), %ecx
	addb	$40, %cl
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, 5(%rcx,%r14)
	leaq	6(%r14), %rcx
	leal	6(%r13), %esi
	cmpl	$1, %eax
	ja	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_2
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(,%rax,8), %ecx
	addb	$48, %cl
	movq	%rdx, %rsi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%sil, 6(%rcx,%r14)
	leaq	7(%r14), %rcx
	leal	7(%r13), %esi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rcx
	jb	LBB0_21
	jmp	LBB0_2
LBB0_22:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.no_dead_strip	_afu_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afu_read_config
_afu_read_config:                       ; @afu_read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x23, x4
	mov	x20, x3
	mov	x22, x1
	mov	x0, x1
	bl	_to_cr
	mov	x21, x0
	ldr	w0, [x22]
	bl	_kobj_to_dev
	bl	_to_cxl_afu
	cbz	x19, LBB0_22
; %bb.1:
	mov	x22, x0
	mov	x26, #0
Lloh0:
	adrp	x24, _cxl_ops@GOTPAGE
Lloh1:
	ldr	x24, [x24, _cxl_ops@GOTPAGEOFF]
	mov	x25, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x11
	mov	x23, x12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, x19
	b.hs	LBB0_22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w1, [x21]
	and	w2, w23, #0xfffffff8
	add	x3, sp, #8
	mov	x0, x22
	blr	x8
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x25, [sp, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, x19
	b.hs	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	and	w10, w23, #0x7
	lsl	x9, x10, #3
	lsr	x11, x8, x9
	strb	w11, [x20, x26]
	add	x11, x26, #1
	add	w12, w23, #1
	cmp	w10, #7
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, #8
	lsr	x12, x8, x12
	strb	w12, [x20, x11]
	add	x11, x26, #2
	add	w12, w23, #2
	cmp	w10, #5
	b.hi	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, #16
	lsr	x12, x8, x12
	strb	w12, [x20, x11]
	add	x11, x26, #3
	add	w12, w23, #3
	cmp	w10, #4
	b.hi	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, #24
	lsr	x12, x8, x12
	strb	w12, [x20, x11]
	add	x11, x26, #4
	add	w12, w23, #4
	cmp	w10, #3
	b.hi	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, #32
	lsr	x12, x8, x12
	strb	w12, [x20, x11]
	add	x11, x26, #5
	add	w12, w23, #5
	cmp	w10, #2
	b.hi	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, #40
	lsr	x12, x8, x12
	strb	w12, [x20, x11]
	add	x11, x26, #6
	add	w12, w23, #6
	cmp	w10, #1
	b.hi	LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x9, #48
	lsr	x12, x8, x12
	strb	w12, [x20, x11]
	add	x11, x26, #7
	add	w12, w23, #7
	cbnz	w10, LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x11, x19
	b.hs	LBB0_2
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #56
	lsr	x8, x8, x9
	strb	w8, [x20, x11]
	add	x26, x26, #8
	add	w23, w23, #8
	b	LBB0_3
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.no_dead_strip	_afu_read_config
.subsections_via_symbols
