	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_surface_set_attrib         ## -- Begin function egl_surface_set_attrib
	.p2align	4, 0x90
_egl_surface_set_attrib:                ## @egl_surface_set_attrib
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_CLIENT_GET_THREAD_STATE
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$131, %ebx
	je	LBB0_7
## %bb.2:
	cmpl	$132, %ebx
	jne	LBB0_11
## %bb.3:
	movq	%rax, %r15
	movl	16(%r12), %eax
	movq	_PBUFFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.4:
	movq	_eglIntSelectMipmap_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EGLINTSELECTMIPMAP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	12(%r12), %edi
	callq	_RPC_UINT
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_RPC_INT
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_RPC_CALL2
	jmp	LBB0_9
LBB0_5:
	leal	-133(%r14), %eax
	cmpl	$1, %eax
	ja	LBB0_13
## %bb.6:
	addq	$4, %r12
	jmp	LBB0_9
LBB0_7:
	leal	-129(%r14), %eax
	cmpl	$1, %eax
	ja	LBB0_13
## %bb.8:
	addq	$8, %r12
LBB0_9:
	movl	%r14d, (%r12)
LBB0_10:
	movq	_EGL_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_EGL_BAD_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_EGL_BAD_ATTRIBUTE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBUFFER,4,2                    ## @PBUFFER
	.comm	_eglIntSelectMipmap_impl,4,2    ## @eglIntSelectMipmap_impl
	.comm	_EGLINTSELECTMIPMAP_ID,4,2      ## @EGLINTSELECTMIPMAP_ID
	.comm	_EGL_SUCCESS,4,2                ## @EGL_SUCCESS
	.comm	_EGL_BAD_PARAMETER,4,2          ## @EGL_BAD_PARAMETER
	.comm	_EGL_BAD_ATTRIBUTE,4,2          ## @EGL_BAD_ATTRIBUTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_surface_set_attrib         ; -- Begin function egl_surface_set_attrib
	.p2align	2
_egl_surface_set_attrib:                ; @egl_surface_set_attrib
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_CLIENT_GET_THREAD_STATE
	cmp	w22, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w22, #131
	b.eq	LBB0_7
; %bb.2:
	cmp	w22, #132
	b.ne	LBB0_12
; %bb.3:
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x9, _PBUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PBUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.4:
	mov	x21, x0
Lloh3:
	adrp	x8, _eglIntSelectMipmap_impl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _eglIntSelectMipmap_impl@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _EGLINTSELECTMIPMAP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGLINTSELECTMIPMAP_ID@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	w0, [x20, #12]
	bl	_RPC_UINT
	mov	x24, x0
	mov	x0, x19
	bl	_RPC_INT
	mov	x4, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_RPC_CALL2
	b	LBB0_9
LBB0_5:
	sub	w8, w19, #133
	cmp	w8, #1
	b.hi	LBB0_11
; %bb.6:
	add	x20, x20, #4
	b	LBB0_9
LBB0_7:
	sub	w8, w19, #129
	cmp	w8, #1
	b.hi	LBB0_11
; %bb.8:
	add	x20, x20, #8
LBB0_9:
	str	w19, [x20]
LBB0_10:
Lloh9:
	adrp	x8, _EGL_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EGL_SUCCESS@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _EGL_BAD_PARAMETER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EGL_BAD_PARAMETER@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, _EGL_BAD_ATTRIBUTE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EGL_BAD_ATTRIBUTE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PBUFFER,4,2                    ; @PBUFFER
	.comm	_eglIntSelectMipmap_impl,4,2    ; @eglIntSelectMipmap_impl
	.comm	_EGLINTSELECTMIPMAP_ID,4,2      ; @EGLINTSELECTMIPMAP_ID
	.comm	_EGL_SUCCESS,4,2                ; @EGL_SUCCESS
	.comm	_EGL_BAD_PARAMETER,4,2          ; @EGL_BAD_PARAMETER
	.comm	_EGL_BAD_ATTRIBUTE,4,2          ; @EGL_BAD_ATTRIBUTE
.subsections_via_symbols
