	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wavefront_get_command
_wavefront_get_command:                 ## @wavefront_get_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_wavefront_commands@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
	.p2align	4, 0x90
## %bb.2:
	cmpl	%edi, %ecx
	je	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rax
	cmpl	%edi, %ecx
	jne	LBB0_3
LBB0_5:
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wavefront_commands,8,3         ## @wavefront_commands
	.no_dead_strip	_wavefront_get_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wavefront_get_command
_wavefront_get_command:                 ; @wavefront_get_command
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _wavefront_commands@GOTPAGE
Lloh1:
	ldr	x9, [x9, _wavefront_commands@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	ldr	w9, [x0]
	cbz	w9, LBB0_5
; %bb.1:
	cmp	w9, w8
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0, #4]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #4
	cmp	w9, w8
	b.ne	LBB0_2
LBB0_4:
	ret
LBB0_5:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_wavefront_commands,8,3         ; @wavefront_commands
	.no_dead_strip	_wavefront_get_command
.subsections_via_symbols
