	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_visual_depth               ## -- Begin function get_visual_depth
	.p2align	4, 0x90
_get_visual_depth:                      ## @get_visual_depth
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_root_screen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xcb_screen_allowed_depths_iterator
	movq	%rax, -48(%rbp)
	movq	%rdx, -40(%rbp)
	xorl	%r14d, %r14d
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rax, %rdi
	leaq	-48(%rbp), %r15
	leaq	-64(%rbp), %r12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	callq	_xcb_depth_visuals_iterator
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	testq	%rdx, %rdx
	je	LBB0_8
	.p2align	4, 0x90
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, (%rax)
	je	LBB0_6
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_xcb_visualtype_next
	cmpq	$0, -56(%rbp)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_xcb_depth_next
	cmpq	$0, -40(%rbp)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	jmp	LBB0_2
LBB0_6:
	movq	-48(%rbp), %rax
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_root_screen,4,2                ## @root_screen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_visual_depth               ; -- Begin function get_visual_depth
	.p2align	2
_get_visual_depth:                      ; @get_visual_depth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _root_screen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _root_screen@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_xcb_screen_allowed_depths_iterator
	stp	x0, x1, [sp, #16]
	cbz	x1, LBB0_8
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	bl	_xcb_depth_visuals_iterator
	stp	x0, x1, [sp]
	cbz	x1, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.eq	LBB0_7
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, sp
	bl	_xcb_visualtype_next
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp]
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #16
	bl	_xcb_depth_next
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #16]
	b	LBB0_1
LBB0_7:
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_root_screen,4,2                ; @root_screen
.subsections_via_symbols
