	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_surface_visibility
_program_surface_visibility:            ## @program_surface_visibility
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_BLND_MODE_CURRENT_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_ASSERT
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	sete	%al
	cmpq	$0, (%rdx)
	je	LBB0_7
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	_BLND_MODE_BLENDING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	sete	%al
	jmp	LBB0_7
LBB0_5:
	movq	_BLND_MODE_OTHER_PIPE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
	xorl	%eax, %eax
LBB0_7:
	movzbl	%al, %r12d
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	%r15d, %edx
	callq	_dce_set_blender_mode
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLND_MODE_CURRENT_PIPE,4,2     ## @BLND_MODE_CURRENT_PIPE
	.comm	_BLND_MODE_BLENDING,4,2         ## @BLND_MODE_BLENDING
	.comm	_BLND_MODE_OTHER_PIPE,4,2       ## @BLND_MODE_OTHER_PIPE
	.no_dead_strip	_program_surface_visibility
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_surface_visibility
_program_surface_visibility:            ; @program_surface_visibility
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BLND_MODE_CURRENT_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLND_MODE_CURRENT_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_ASSERT
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x10, [x8]
	ldr	x8, [x9]
	cmp	x8, #0
	cset	w22, eq
	cbz	x10, LBB0_7
; %bb.2:
	mov	w22, #0
	cbz	x8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _BLND_MODE_BLENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLND_MODE_BLENDING@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w22, eq
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _BLND_MODE_OTHER_PIPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLND_MODE_OTHER_PIPE@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
LBB0_7:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	mov	x2, x21
	bl	_dce_set_blender_mode
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x2, [x8]
	mov	x1, x22
	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
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BLND_MODE_CURRENT_PIPE,4,2     ; @BLND_MODE_CURRENT_PIPE
	.comm	_BLND_MODE_BLENDING,4,2         ; @BLND_MODE_BLENDING
	.comm	_BLND_MODE_OTHER_PIPE,4,2       ; @BLND_MODE_OTHER_PIPE
	.no_dead_strip	_program_surface_visibility
.subsections_via_symbols
