	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rh_alloc
___rh_alloc:                            ## @__rh_alloc
	.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	%esi, %r12d
	movq	%rdi, %r14
	leaq	12(%rdi), %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mempool_alloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movq	___GFP_NOFAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	movq	%rax, %rbx
LBB0_2:
	movq	16(%r14), %rdi
	movq	(%rdi), %rax
	movl	%r12d, %esi
	movl	$1, %edx
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_DM_RH_NOSYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_DM_RH_CLEAN@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, 24(%rbx)
	movl	%r12d, 20(%rbx)
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	12(%rbx), %rdi
	callq	_bio_list_init
	movq	%r14, %rdi
	callq	_write_lock_irq
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	___rh_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mempool_free
	movq	%r12, %rbx
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___rh_insert
	movq	(%rbx), %rax
	movq	_DM_RH_CLEAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	leaq	8(%r14), %rsi
	movq	%r13, %rdi
	callq	_list_add
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_9:
	movq	%r14, %rdi
	callq	_write_unlock_irq
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	___GFP_NOFAIL,4,2               ## @__GFP_NOFAIL
	.comm	_DM_RH_CLEAN,8,3                ## @DM_RH_CLEAN
	.comm	_DM_RH_NOSYNC,8,3               ## @DM_RH_NOSYNC
	.no_dead_strip	___rh_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rh_alloc
___rh_alloc:                            ; @__rh_alloc
	.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
	mov	x22, x1
	mov	x19, x0
	add	x21, x0, #12
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mempool_alloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, ___GFP_NOFAIL@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___GFP_NOFAIL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w0, #32
	bl	_kmalloc
	mov	x20, x0
LBB0_2:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x22
	mov	w2, #1
	blr	x8
Lloh9:
	adrp	x24, _DM_RH_CLEAN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _DM_RH_CLEAN@GOTPAGEOFF]
Lloh11:
	adrp	x8, _DM_RH_NOSYNC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DM_RH_NOSYNC@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x24, eq
	ldr	x8, [x8]
	str	x8, [x20]
	str	x19, [x20, #24]
	str	w22, [x20, #20]
	add	x23, x20, #8
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #12
	bl	_bio_list_init
	mov	x0, x19
	bl	_write_lock_irq
	mov	x0, x19
	mov	x1, x22
	bl	___rh_lookup
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mempool_free
	mov	x20, x22
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	___rh_insert
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	add	x1, x19, #8
	mov	x0, x23
	bl	_list_add
	mov	x0, x21
	bl	_spin_unlock
LBB0_6:
	mov	x0, x19
	bl	_write_unlock_irq
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	___GFP_NOFAIL,4,2               ; @__GFP_NOFAIL
	.comm	_DM_RH_CLEAN,8,3                ; @DM_RH_CLEAN
	.comm	_DM_RH_NOSYNC,8,3               ; @DM_RH_NOSYNC
	.no_dead_strip	___rh_alloc
.subsections_via_symbols
