	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hem_list_alloc_item
_hem_list_alloc_item:                   ## @hem_list_alloc_item
	.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	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$28, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movl	(%r13), %edi
	movq	_BA_BYTE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%r15d, %esi
	leaq	24(%rbx), %rdx
	movl	(%r12), %ecx
	callq	_dma_alloc_coherent
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	%r15d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_INIT_LIST_HEAD
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	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_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BA_BYTE_LEN,4,2                ## @BA_BYTE_LEN
	.no_dead_strip	_hem_list_alloc_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hem_list_alloc_item
_hem_list_alloc_item:                   ; @hem_list_alloc_item
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #28
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	cbz	w23, LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _BA_BYTE_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BA_BYTE_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w1, w8, w21
	add	x2, x19, #24
	ldr	w3, [x25]
	bl	_dma_alloc_coherent
	str	w0, [x19, #20]
	cbz	w0, LBB0_4
LBB0_3:
	stp	w21, w22, [x19]
	add	x0, x19, #16
	str	w20, [x19, #8]
	bl	_INIT_LIST_HEAD
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BA_BYTE_LEN,4,2                ; @BA_BYTE_LEN
	.no_dead_strip	_hem_list_alloc_item
.subsections_via_symbols
