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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_visualtype                 ; -- Begin function get_visualtype
	.p2align	2
_get_visualtype:                        ; @get_visualtype
	.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
	bl	_xcb_screen_allowed_depths_iterator
	stp	x0, x1, [sp, #16]
	cbz	x1, LBB0_7
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_xcb_depth_visuals_iterator
	stp	x0, x1, [sp]
	cbz	x1, LBB0_5
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, sp
	bl	_xcb_visualtype_next
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x0, [sp]
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #16
	bl	_xcb_depth_next
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #16]
	b	LBB0_1
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
