	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_visualid_by_depth          ## -- Begin function get_visualid_by_depth
	.p2align	4, 0x90
_get_visualid_by_depth:                 ## @get_visualid_by_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -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, -40(%rbp)
	movq	%rdx, -32(%rbp)
	xorl	%r14d, %r14d
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rax, %rdi
	leaq	-40(%rbp), %r15
	cmpq	%rbx, (%rdi)
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_3:
	callq	_xcb_depth_visuals_iterator
	testl	%edx, %edx
	jne	LBB0_4
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_xcb_depth_next
	cmpq	$0, -32(%rbp)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-40(%rbp), %rdi
	cmpq	%rbx, (%rdi)
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	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_visualid_by_depth          ; -- Begin function get_visualid_by_depth
	.p2align	2
_get_visualid_by_depth:                 ; @get_visualid_by_depth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	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]
	cbz	x1, LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_xcb_depth_visuals_iterator
	cbnz	w1, LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, sp
	bl	_xcb_depth_next
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp]
	b	LBB0_1
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	w0, [x0]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_root_screen,4,2                ; @root_screen
.subsections_via_symbols
