	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_enable_clip_distances  ## -- Begin function context_enable_clip_distances
	.p2align	4, 0x90
_context_enable_clip_distances:         ## @context_enable_clip_distances
	.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	%esi, %r14d
	movq	8(%rdi), %rbx
	movb	16(%rbx), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%eax, %ecx
	andl	%esi, %ecx
	notl	%r14d
	andl	%eax, %r14d
	movl	(%rdi), %r12d
	movl	%ecx, (%rdi)
	movl	%r12d, %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, -48(%rbp)
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %r15
	movq	_GL_CLIP_DISTANCE0@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_wined3d_bit_scan
	movl	%eax, %edi
	addq	(%r13), %rdi
	callq	*8(%rbx)
	cmpl	$0, -48(%rbp)
	jne	LBB0_2
LBB0_3:
	andl	%r12d, %r14d
	movl	%r14d, -44(%rbp)
	je	LBB0_6
## %bb.4:
	leaq	-44(%rbp), %r14
	movq	_GL_CLIP_DISTANCE0@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_wined3d_bit_scan
	movl	%eax, %edi
	addq	(%r15), %rdi
	callq	*(%rbx)
	cmpl	$0, -44(%rbp)
	jne	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_CLIP_DISTANCE0,8,3          ## @GL_CLIP_DISTANCE0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"toggle clip distances"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_enable_clip_distances  ; -- Begin function context_enable_clip_distances
	.p2align	2
_context_enable_clip_distances:         ; @context_enable_clip_distances
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x19, #16]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w9, w8
	bic	w8, w1, w8
	bic	w21, w9, w1
	ldr	w22, [x0]
	str	w8, [x0]
Lloh0:
	adrp	x20, _GL_CLIP_DISTANCE0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GL_CLIP_DISTANCE0@GOTPAGEOFF]
	bics	w8, w8, w22
	str	w8, [sp, #12]
	b.eq	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_wined3d_bit_scan
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, w0, uxtw
	blr	x8
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_1
LBB0_2:
	ands	w8, w21, w22
	str	w8, [sp, #8]
	b.eq	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_wined3d_bit_scan
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, w0, uxtw
	blr	x8
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_3
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_CLIP_DISTANCE0,8,3          ; @GL_CLIP_DISTANCE0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"toggle clip distances"

.subsections_via_symbols
