	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_dummy_read_buf
_allocate_dummy_read_buf:               ## @allocate_dummy_read_buf
	.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	_CXL_DUMMY_READ_SIZE@GOTPCREL(%rip), %r15
	movq	_CXL_DUMMY_READ_ALIGN@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	$1, %r14d
	movl	$1, %ebx
	shlq	%cl, %rbx
	addq	(%r15), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movb	(%r12), %cl
	shlq	%cl, %r14
	addq	%rax, %r14
	decq	%r14
	shrq	%cl, %r14
	shlq	%cl, %r14
	movq	(%r15), %rcx
	addq	%r14, %rcx
	addq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%rbx, %rcx
	seta	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	%r14, %rdi
	callq	_virt_to_phys
	movq	_dummy_read_addr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXL_DUMMY_READ_SIZE,8,3        ## @CXL_DUMMY_READ_SIZE
	.comm	_CXL_DUMMY_READ_ALIGN,8,3       ## @CXL_DUMMY_READ_ALIGN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dummy read buffer alignment issue"

	.comm	_dummy_read_addr,4,2            ## @dummy_read_addr
	.no_dead_strip	_allocate_dummy_read_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_dummy_read_buf
_allocate_dummy_read_buf:               ; @allocate_dummy_read_buf
	.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
Lloh0:
	adrp	x21, _CXL_DUMMY_READ_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CXL_DUMMY_READ_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _CXL_DUMMY_READ_ALIGN@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CXL_DUMMY_READ_ALIGN@GOTPAGEOFF]
	ldr	x9, [x20]
	mov	w10, #1
	lsl	x9, x10, x9
	add	x19, x9, x8
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	mov	w9, #1
	lsl	x9, x9, x8
	add	x9, x0, x9
	sub	x9, x9, #1
	mov	x10, #-1
	lsl	x8, x10, x8
	and	x20, x9, x8
	ldr	x8, [x21]
	add	x8, x20, x8
	add	x9, x0, x19
	cmp	x8, x9
	cset	w0, hi
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	mov	x0, x20
	bl	_virt_to_phys
	mov	x8, x0
	mov	w0, #0
Lloh9:
	adrp	x9, _dummy_read_addr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _dummy_read_addr@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CXL_DUMMY_READ_SIZE,8,3        ; @CXL_DUMMY_READ_SIZE
	.comm	_CXL_DUMMY_READ_ALIGN,8,3       ; @CXL_DUMMY_READ_ALIGN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dummy read buffer alignment issue"

	.comm	_dummy_read_addr,4,2            ; @dummy_read_addr
	.no_dead_strip	_allocate_dummy_read_buf
.subsections_via_symbols
