	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_hw_queue_reset              ## -- Begin function hl_hw_queue_reset
	.p2align	4, 0x90
_hl_hw_queue_reset:                     ## @hl_hw_queue_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HL_MAX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_17
## %bb.1:
	movq	(%rdi), %rax
	movq	_QUEUE_TYPE_CPU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$1, %edx
	jne	LBB0_2
LBB0_12:
	testb	$1, %dl
	je	LBB0_17
## %bb.13:
	cmpl	$0, 24(%rax)
	je	LBB0_17
## %bb.14:
	testl	%esi, %esi
	jne	LBB0_16
## %bb.15:
	cmpq	%rcx, (%rax)
	je	LBB0_17
LBB0_16:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
LBB0_17:
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %edi
	andl	$-2, %edi
	xorps	%xmm0, %xmm0
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movups	%xmm0, 40(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$64, %rax
	addl	$-2, %edi
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 24(%rax)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, (%rax)
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movups	%xmm0, 8(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 56(%rax)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, 32(%rax)
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_HL_MAX_QUEUES,4,2              ## @HL_MAX_QUEUES
	.comm	_QUEUE_TYPE_CPU,8,3             ## @QUEUE_TYPE_CPU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_hw_queue_reset              ; -- Begin function hl_hw_queue_reset
	.p2align	2
_hl_hw_queue_reset:                     ; @hl_hw_queue_reset
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HL_MAX_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HL_MAX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _QUEUE_TYPE_CPU@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QUEUE_TYPE_CPU@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	xzr, xzr, [x9, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #32
	subs	w8, w8, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, #24]
	cbz	w11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w1, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.ne	LBB0_2
	b	LBB0_3
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HL_MAX_QUEUES,4,2              ; @HL_MAX_QUEUES
	.comm	_QUEUE_TYPE_CPU,8,3             ; @QUEUE_TYPE_CPU
.subsections_via_symbols
