	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_clear_stencil_buffer        ## -- Begin function gl_clear_stencil_buffer
	.p2align	4, 0x90
_gl_clear_stencil_buffer:               ## @gl_clear_stencil_buffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	40(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.3:
	movq	16(%rax), %rbx
	cmpq	24(%rax), %rbx
	jle	LBB0_4
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r14), %esi
	movl	32(%rax), %edx
	imull	36(%rax), %edx
	shll	$2, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MEMSET                         ## TAILCALL
LBB0_4:
	movl	(%rax), %ecx
	movq	8(%rax), %rdi
	subl	%edi, %ecx
	leal	4(,%rcx,4), %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_STENCIL_ADDRESS
	movl	8(%r14), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_MEMSET
	movq	(%r14), %rax
	cmpq	24(%rax), %rbx
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	8(%rax), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_clear_stencil_buffer        ; -- Begin function gl_clear_stencil_buffer
	.p2align	2
_gl_clear_stencil_buffer:               ; @gl_clear_stencil_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8, #40]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_5
; %bb.3:
	ldp	x20, x9, [x8, #16]
	cmp	x20, x9
	b.le	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x19, #8]
	ldp	w9, w8, [x8, #32]
	mul	w8, w9, w8
	lsl	w2, w8, #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_MEMSET
LBB0_6:
	ldr	w9, [x8]
	ldr	x0, [x8, #8]
	sub	w8, w9, w0
	lsl	w8, w8, #2
	add	w21, w8, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_STENCIL_ADDRESS
	ldr	w1, [x19, #8]
	mov	x2, x21
	bl	_MEMSET
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	cmp	x20, x9
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldr	x0, [x8, #8]
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
