	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_fw_test_cpu_queue           ## -- Begin function hl_fw_test_cpu_queue
	.p2align	4, 0x90
_hl_fw_test_cpu_queue:                  ## @hl_fw_test_cpu_queue
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ARMCP_PACKET_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ARMCP_PKT_CTL_OPCODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_cpu_to_le32
	movl	%eax, -28(%rbp)
	movq	_ARMCP_PACKET_FENCE_VAL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_cpu_to_le64
	movl	%eax, -32(%rbp)
	movq	8(%rbx), %rax
	movq	_HL_DEVICE_TIMEOUT_USEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	jmp	LBB0_5
LBB0_1:
	movq	-40(%rbp), %rdx
	movl	(%rbx), %edi
	cmpq	(%r15), %rdx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_5:
	callq	_dev_err
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARMCP_PACKET_TEST,4,2          ## @ARMCP_PACKET_TEST
	.comm	_ARMCP_PKT_CTL_OPCODE_SHIFT,4,2 ## @ARMCP_PKT_CTL_OPCODE_SHIFT
	.comm	_ARMCP_PACKET_FENCE_VAL,8,3     ## @ARMCP_PACKET_FENCE_VAL
	.comm	_HL_DEVICE_TIMEOUT_USEC,4,2     ## @HL_DEVICE_TIMEOUT_USEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue test on CPU queue succeeded\n"

L_.str.1:                               ## @.str.1
	.asciz	"CPU queue test failed (0x%08lX)\n"

L_.str.2:                               ## @.str.2
	.asciz	"CPU queue test failed, error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_fw_test_cpu_queue           ; -- Begin function hl_fw_test_cpu_queue
	.p2align	2
_hl_fw_test_cpu_queue:                  ; @hl_fw_test_cpu_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ARMCP_PACKET_TEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARMCP_PACKET_TEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ARMCP_PKT_CTL_OPCODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARMCP_PKT_CTL_OPCODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [sp, #12]
Lloh6:
	adrp	x21, _ARMCP_PACKET_FENCE_VAL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ARMCP_PACKET_FENCE_VAL@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_cpu_to_le64
	str	w0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _HL_DEVICE_TIMEOUT_USEC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HL_DEVICE_TIMEOUT_USEC@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
	add	x1, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	w2, #8
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	b	LBB0_5
LBB0_2:
	ldr	x2, [sp]
	ldr	x8, [x21]
	ldr	w0, [x19]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_5:
	bl	_dev_err
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARMCP_PACKET_TEST,4,2          ; @ARMCP_PACKET_TEST
	.comm	_ARMCP_PKT_CTL_OPCODE_SHIFT,4,2 ; @ARMCP_PKT_CTL_OPCODE_SHIFT
	.comm	_ARMCP_PACKET_FENCE_VAL,8,3     ; @ARMCP_PACKET_FENCE_VAL
	.comm	_HL_DEVICE_TIMEOUT_USEC,4,2     ; @HL_DEVICE_TIMEOUT_USEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue test on CPU queue succeeded\n"

l_.str.1:                               ; @.str.1
	.asciz	"CPU queue test failed (0x%08lX)\n"

l_.str.2:                               ; @.str.2
	.asciz	"CPU queue test failed, error %d\n"

.subsections_via_symbols
