	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_clear_sm_regs
_goya_clear_sm_regs:                    ## @goya_clear_sm_regs
	.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	_mmSYNC_MNGR_SOB_OBJ_1023@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_mmSYNC_MNGR_SOB_OBJ_0@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	subl	%edi, %r12d
	addl	$4, %r12d
	movq	_mmSYNC_MNGR_MON_STATUS_255@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_mmSYNC_MNGR_MON_STATUS_0@GOTPCREL(%rip), %r15
	subl	(%r15), %r13d
	addl	$4, %r13d
	testl	%r12d, %r12d
	jle	LBB0_4
## %bb.1:
	xorl	%esi, %esi
	callq	_WREG32
	cmpl	$5, %r12d
	jl	LBB0_4
## %bb.2:
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addl	%ebx, %edi
	xorl	%esi, %esi
	callq	_WREG32
	addl	$4, %ebx
	cmpl	%r12d, %ebx
	jl	LBB0_3
LBB0_4:
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	addl	%ebx, %edi
	xorl	%esi, %esi
	callq	_WREG32
	addl	$4, %ebx
	cmpl	%r13d, %ebx
	jl	LBB0_6
LBB0_7:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSYNC_MNGR_SOB_OBJ_1023,4,2   ## @mmSYNC_MNGR_SOB_OBJ_1023
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,4,2      ## @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_mmSYNC_MNGR_MON_STATUS_255,4,2 ## @mmSYNC_MNGR_MON_STATUS_255
	.comm	_mmSYNC_MNGR_MON_STATUS_0,4,2   ## @mmSYNC_MNGR_MON_STATUS_0
	.no_dead_strip	_goya_clear_sm_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_clear_sm_regs
_goya_clear_sm_regs:                    ; @goya_clear_sm_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _mmSYNC_MNGR_SOB_OBJ_1023@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSYNC_MNGR_SOB_OBJ_1023@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGE
Lloh4:
	ldr	x19, [x19, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGEOFF]
	ldr	w0, [x19]
	sub	w8, w8, w0
	add	w22, w8, #4
Lloh5:
	adrp	x8, _mmSYNC_MNGR_MON_STATUS_255@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmSYNC_MNGR_MON_STATUS_255@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x20, _mmSYNC_MNGR_MON_STATUS_0@GOTPAGE
Lloh9:
	ldr	x20, [x20, _mmSYNC_MNGR_MON_STATUS_0@GOTPAGEOFF]
	ldr	w9, [x20]
	sub	w8, w8, w9
	add	w21, w8, #4
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w1, #0
	bl	_WREG32
	cmp	w22, #5
	b.lt	LBB0_4
; %bb.2:
	mov	w23, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	add	w0, w23, w8
	mov	w1, #0
	bl	_WREG32
	add	w23, w23, #4
	cmp	w23, w22
	b.lt	LBB0_3
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	add	w0, w22, w8
	mov	w1, #0
	bl	_WREG32
	add	w22, w22, #4
	cmp	w22, w21
	b.lt	LBB0_6
LBB0_7:
	ldr	w0, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RREG32
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSYNC_MNGR_SOB_OBJ_1023,4,2   ; @mmSYNC_MNGR_SOB_OBJ_1023
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,4,2      ; @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_mmSYNC_MNGR_MON_STATUS_255,4,2 ; @mmSYNC_MNGR_MON_STATUS_255
	.comm	_mmSYNC_MNGR_MON_STATUS_0,4,2   ; @mmSYNC_MNGR_MON_STATUS_0
	.no_dead_strip	_goya_clear_sm_regs
.subsections_via_symbols
