	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkMipmapArgs
_checkMipmapArgs:                       ## @checkMipmapArgs
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_legalFormat
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_legalType
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_GL_STENCIL_INDEX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
LBB0_2:
	movq	_GLU_INVALID_ENUM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_isLegalFormatForPackedPixelType
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_GLU_INVALID_OPERATION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GLU_INVALID_ENUM,4,2           ## @GLU_INVALID_ENUM
	.comm	_GL_STENCIL_INDEX,8,3           ## @GL_STENCIL_INDEX
	.comm	_GLU_INVALID_OPERATION,4,2      ## @GLU_INVALID_OPERATION
	.no_dead_strip	_checkMipmapArgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkMipmapArgs
_checkMipmapArgs:                       ; @checkMipmapArgs
	.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, x2
	mov	x20, x1
	mov	x0, x1
	bl	_legalFormat
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_legalType
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _GL_STENCIL_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_STENCIL_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _GLU_INVALID_ENUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLU_INVALID_ENUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_isLegalFormatForPackedPixelType
Lloh6:
	adrp	x8, _GLU_INVALID_OPERATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLU_INVALID_OPERATION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GLU_INVALID_ENUM,4,2           ; @GLU_INVALID_ENUM
	.comm	_GL_STENCIL_INDEX,8,3           ; @GL_STENCIL_INDEX
	.comm	_GLU_INVALID_OPERATION,4,2      ; @GLU_INVALID_OPERATION
	.no_dead_strip	_checkMipmapArgs
.subsections_via_symbols
