	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetStencilFormat
_GetStencilFormat:                      ## @GetStencilFormat
	.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
	movl	%esi, %ebx
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	jb	LBB0_3
## %bb.1:
	cmpl	$131, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$132, %ebx
	jne	LBB0_4
LBB0_3:
	leal	-1(%rbx), %r14d
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_IsSupportedFormatOp
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	movl	%ebx, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$131, %r14d
	movl	$131, %esi
	xorl	%edx, %edx
	callq	_IsSupportedFormatOp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_D3DFMT_D16_LOCKABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DFMT_D16_LOCKABLE,4,2        ## @D3DFMT_D16_LOCKABLE
	.no_dead_strip	_GetStencilFormat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetStencilFormat
_GetStencilFormat:                      ; @GetStencilFormat
	.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
	mov	x19, x1
	sub	w8, w1, #128
	cmp	w8, #3
	b.lo	LBB0_3
; %bb.1:
	cmp	w19, #131
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #132
	b.ne	LBB0_4
LBB0_3:
	sub	w20, w19, #1
	mov	x1, x20
	mov	w2, #0
	bl	_IsSupportedFormatOp
	cbnz	w0, LBB0_6
LBB0_4:
	mov	x20, x19
	b	LBB0_6
LBB0_5:
	mov	w1, #131
	mov	w2, #0
	bl	_IsSupportedFormatOp
Lloh0:
	adrp	x8, _D3DFMT_D16_LOCKABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DFMT_D16_LOCKABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w20, w8, w19, eq
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DFMT_D16_LOCKABLE,4,2        ; @D3DFMT_D16_LOCKABLE
	.no_dead_strip	_GetStencilFormat
.subsections_via_symbols
