	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spu_queue_register_workfn
_spu_queue_register_workfn:             ## @spu_queue_register_workfn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	movl	4(%r14), %edi
	callq	___pa
	movq	_CWQ_NUM_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_sun4v_ncs_qconf
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_sun4v_ncs_sethead_marker
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	testq	%rbx, %rbx
	cmoveq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CWQ_NUM_ENTRIES,4,2            ## @CWQ_NUM_ENTRIES
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_spu_queue_register_workfn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spu_queue_register_workfn
_spu_queue_register_workfn:             ; @spu_queue_register_workfn
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x20, x19, [x0]
	ldr	w0, [x19, #4]
	bl	___pa
	mov	x1, x0
Lloh0:
	adrp	x8, _CWQ_NUM_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CWQ_NUM_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_sun4v_ncs_qconf
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_sun4v_ncs_sethead_marker
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, #0
	csneg	x0, xzr, x8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CWQ_NUM_ENTRIES,4,2            ; @CWQ_NUM_ENTRIES
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_spu_queue_register_workfn
.subsections_via_symbols
