	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_request               ## -- Begin function hidma_ll_request
	.p2align	4, 0x90
_hidma_ll_request:                      ## @hidma_ll_request
	.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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%r9, %r12
	testq	%r9, %r9
	je	LBB0_4
## %bb.2:
	movq	%rcx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$1, (%rdi)
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	jne	LBB0_6
## %bb.3:
	xorl	%r13d, %r13d
	movl	$1, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	$88, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	addq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_atomic_add_unless
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	addq	$96, %r15
	cmpq	%rcx, %r13
	jb	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movl	(%rbx), %eax
LBB0_10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_11:
	decl	%eax
	cmpl	%eax, %r13d
	jne	LBB0_13
## %bb.12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	8(%rbx), %rax
	movl	%r13d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$5, %rcx
	movl	%r14d, (%rax,%rcx)
	movq	%rdx, 8(%rax,%rcx)
	movq	%r15, 16(%rax,%rcx)
	movq	%r8, 80(%rax,%rcx)
	movl	%r13d, 24(%rax,%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rax,%rcx)
	movups	%xmm0, 64(%rax,%rcx)
	movq	%rbx, 40(%rax,%rcx)
	movq	32(%rax,%rcx), %r14
	movl	4(%rbx), %eax
	shll	$8, %eax
	movzwl	%ax, %eax
	movq	_HIDMA_TRE_CFG_IDX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movl	$16, %edi
	callq	_BIT
	movq	(%rbx), %rcx
	orl	%eax, (%r14,%rcx,4)
	movl	%r13d, (%r12)
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*%r15
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HIDMA_TRE_CFG_IDX,8,3          ## @HIDMA_TRE_CFG_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_ll_request               ; -- Begin function hidma_ll_request
	.p2align	2
_hidma_ll_request:                      ; @hidma_ll_request
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x5
	cbz	x5, LBB0_4
; %bb.2:
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	mov	w25, #0
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	x25, #0
	mov	w26, #88
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x0, x8, x26
	mov	w1, #1
	mov	w2, #1
	bl	_atomic_add_unless
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldr	w8, [x22]
	sub	w9, w8, #1
	add	x26, x26, #96
	cmp	x25, x9
	b.lo	LBB0_6
	b	LBB0_9
LBB0_8:
	ldr	w8, [x22]
LBB0_9:
	sub	w8, w8, #1
	cmp	w25, w8
	b.ne	LBB0_12
; %bb.10:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_12:
	ldr	x8, [x22, #8]
	mov	w9, #96
	umaddl	x8, w25, w9, x8
	str	w24, [x8]
	stp	x23, x19, [x8, #8]
	str	x20, [x8, #80]
	str	w25, [x8, #24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #48]
	str	x22, [x8, #40]
	ldr	x23, [x8, #32]
	ldr	w8, [x22, #4]
	ubfiz	w8, w8, #8, #8
Lloh4:
	adrp	x22, _HIDMA_TRE_CFG_IDX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HIDMA_TRE_CFG_IDX@GOTPAGEOFF]
	ldr	x9, [x22]
	str	w8, [x23, x9, lsl #2]
	mov	w0, #16
	bl	_BIT
	ldr	x8, [x22]
	lsl	x8, x8, #2
	ldr	w9, [x23, x8]
	orr	w9, w9, w0
	str	w9, [x23, x8]
	str	w25, [x21]
	cbz	x19, LBB0_14
; %bb.13:
	mov	x0, x20
	blr	x19
LBB0_14:
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HIDMA_TRE_CFG_IDX,8,3          ; @HIDMA_TRE_CFG_IDX
.subsections_via_symbols
