	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acquire_resource_from_hw_enabled_state
_acquire_resource_from_hw_enabled_state: ## @acquire_resource_from_hw_enabled_state
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdx), %rbx
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	callq	*8(%rax)
	movl	$-1, %r13d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	cmpl	(%r12), %eax
	jae	LBB0_8
## %bb.2:
	cmpl	4(%r12), %eax
	jae	LBB0_8
## %bb.3:
	movq	72(%r12), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	xorl	%r13d, %r13d
	cmpl	8(%r12), %eax
	jae	LBB0_8
## %bb.4:
	movq	(%r15), %rcx
	movl	%eax, %esi
	imulq	$56, %rsi, %rdx
	cmpq	$0, 8(%rcx,%rdx)
	movl	$-1, %r13d
	jne	LBB0_8
## %bb.5:
	leaq	(%rcx,%rdx), %r8
	addq	$8, %r8
	movq	64(%r12), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, 52(%rcx,%rdx)
	movq	56(%r12), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, 44(%rcx,%rdx)
	movq	48(%r12), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, 40(%rcx,%rdx)
	movq	40(%r12), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, 36(%rcx,%rdx)
	movq	32(%r12), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, 32(%rcx,%rdx)
	movq	16(%r12), %rbx
	movq	(%rbx,%rsi,8), %rdi
	movq	%rdi, 24(%rcx,%rdx)
	movq	24(%r12), %rdi
	movl	(%rdi,%rsi,4), %edi
	movl	%edi, 48(%rcx,%rdx)
	movq	(%rbx,%rsi,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	(%rsi), %esi
	movl	%esi, 16(%rcx,%rdx)
LBB0_7:
	movl	%eax, (%rcx,%rdx)
	movq	%r14, (%r8)
	movl	%eax, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_acquire_resource_from_hw_enabled_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_resource_from_hw_enabled_state
_acquire_resource_from_hw_enabled_state: ; @acquire_resource_from_hw_enabled_state
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2]
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	blr	x8
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x20]
	cmp	w0, w8
	b.hs	LBB0_5
; %bb.2:
	ldr	w8, [x20, #4]
	cmp	w0, w8
	b.hs	LBB0_5
; %bb.3:
	ldr	x8, [x20, #72]
	ldr	x0, [x8, w0, uxtw #3]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x20, #8]
	cmp	w0, w8
	b.hs	LBB0_7
; %bb.4:
	ldr	x8, [x21]
	mov	w9, #56
	umaddl	x9, w0, w9, x8
	ldr	x10, [x9, #8]!
	cbz	x10, LBB0_8
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
LBB0_7:
	mov	w0, #0
	b	LBB0_6
LBB0_8:
	mov	w10, w0
	ldr	x11, [x20, #64]
	lsl	x12, x10, #2
	ldr	w11, [x11, x12]
	mov	w13, #56
	madd	x13, x10, x13, x8
	str	w11, [x13, #52]
	ldp	x14, x11, [x20, #48]
	ldr	w11, [x11, x12]
	str	w11, [x13, #44]
	ldr	w11, [x14, x12]
	str	w11, [x13, #40]
	ldp	x14, x11, [x20, #32]
	ldr	w11, [x11, x12]
	str	w11, [x13, #36]
	ldr	w11, [x14, x12]
	str	w11, [x13, #32]
	lsl	x11, x10, #3
	ldp	x14, x15, [x20, #16]
	ldr	x16, [x14, x11]
	str	x16, [x13, #24]
	ldr	w12, [x15, x12]
	str	w12, [x13, #48]
	ldr	x11, [x14, x11]
	cbz	x11, LBB0_10
; %bb.9:
	ldr	w11, [x11]
	mov	w12, #56
	madd	x12, x10, x12, x8
	str	w11, [x12, #16]
LBB0_10:
	mov	w11, #56
	mul	x10, x10, x11
	str	w0, [x8, x10]
	str	x19, [x9]
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_acquire_resource_from_hw_enabled_state
.subsections_via_symbols
