	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _guest_afu_cr_readXX
__guest_afu_cr_readXX:                  ## @_guest_afu_cr_readXX
	.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
	movl	(%rsi), %eax
	cmpl	%edi, %eax
	jge	LBB0_3
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r8, %r15
	movl	%edx, %r13d
	movq	%rsi, %r14
	movl	%edi, %r12d
	movsbl	%cl, %ebx
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_virt_to_phys
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_cxl_h_get_config
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_15:
	movq	%r14, %rdi
	callq	_free_page
	jmp	LBB0_16
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	decl	%r12d
	cmpl	$7, %r12d
	ja	LBB0_14
## %bb.9:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movb	(%r14), %al
	movb	%al, (%r15)
	jmp	LBB0_15
LBB0_11:
	movq	%r14, %rdi
	callq	_in_le16
	movb	%al, (%r15)
	jmp	LBB0_15
LBB0_14:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_15
LBB0_12:
	movq	%r14, %rdi
	callq	_in_le32
	movb	%al, (%r15)
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	callq	_in_le64
	movb	%al, (%r15)
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	__guest_afu_cr_readXX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _guest_afu_cr_readXX
__guest_afu_cr_readXX:                  ; @_guest_afu_cr_readXX
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x1]
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	cmp	w8, w3
	cset	w0, le
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _ERANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	cbz	x0, LBB0_9
; %bb.7:
	mov	x20, x0
	ldr	x8, [x24, #8]
	ldr	w24, [x8]
	bl	_virt_to_phys
	mov	x3, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	x4, x22
	bl	_cxl_h_get_config
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_free_page
	b	LBB0_5
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	sub	w8, w22, #1
	cmp	w8, #7
	b.hi	LBB0_14
; %bb.11:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	ldrb	w8, [x20]
	strb	w8, [x19]
	b	LBB0_8
LBB0_13:
	mov	x0, x20
	bl	_in_le16
	strb	w0, [x19]
	b	LBB0_8
LBB0_14:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_8
LBB0_15:
	mov	x0, x20
	bl	_in_le32
	strb	w0, [x19]
	b	LBB0_8
LBB0_16:
	mov	x0, x20
	bl	_in_le64
	strb	w0, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	__guest_afu_cr_readXX
.subsections_via_symbols
