	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function randr_query_outputs_14
_randr_query_outputs_14:                ## @randr_query_outputs_14
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_conn@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_root@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_xcb_randr_get_screen_resources_current
	movl	%eax, %r14d
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_xcb_randr_get_output_primary
	movl	(%r15), %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_xcb_randr_get_output_primary_reply
	movq	_primary@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_ELOG
LBB0_3:
	movl	(%r15), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_xcb_randr_get_screen_resources_current_reply
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_xcb_randr_get_screen_resources_current_outputs_length
	movl	%eax, %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_xcb_randr_get_screen_resources_current_outputs
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.7:
	xorl	%ebx, %ebx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15,%rbx,4), %esi
	movl	%r12d, %edx
	callq	_xcb_randr_get_output_info
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
## %bb.9:
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_conn@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r13,%r15,4), %esi
	xorl	%edx, %edx
	callq	_xcb_randr_get_output_info_reply
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_handle_output
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_FREE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ELOG                           ## TAILCALL
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Querying outputs using RandR \342\211\244 1.4\n"

	.comm	_conn,4,2                       ## @conn
	.comm	_root,4,2                       ## @root
	.comm	_primary,8,3                    ## @primary
L_.str.1:                               ## @.str.1
	.asciz	"Could not get RandR primary output\n"

L_.str.2:                               ## @.str.2
	.asciz	"primary output is %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not query screen resources.\n"

	.no_dead_strip	_randr_query_outputs_14
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function randr_query_outputs_14
_randr_query_outputs_14:                ; @randr_query_outputs_14
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
Lloh5:
	adrp	x23, _conn@GOTPAGE
Lloh6:
	ldr	x23, [x23, _conn@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh7:
	adrp	x20, _root@GOTPAGE
Lloh8:
	ldr	x20, [x20, _root@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_xcb_randr_get_screen_resources_current
	mov	x19, x0
	ldr	w0, [x23]
	ldr	w1, [x20]
	bl	_xcb_randr_get_output_primary
	mov	x1, x0
	ldr	w0, [x23]
	mov	x2, #0
	bl	_xcb_randr_get_output_primary_reply
Lloh9:
	adrp	x8, _primary@GOTPAGE
Lloh10:
	ldr	x8, [x8, _primary@GOTPAGEOFF]
Lloh11:
	str	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
	str	x8, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	add	sp, sp, #16
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ELOG
LBB0_3:
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, #0
	bl	_xcb_randr_get_screen_resources_current_reply
	cbz	x0, LBB0_13
; %bb.4:
	mov	x19, x0
	ldr	w20, [x0]
	bl	_xcb_randr_get_screen_resources_current_outputs_length
	mov	x22, x0
	mov	x0, x19
	bl	_xcb_randr_get_screen_resources_current_outputs
	mov	x21, x0
	mov	x24, sp
	mov	w25, w22
	lsl	x8, x25, #2
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, x25
	mov	x27, x21
	mov	x28, x26
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x27], #4
	mov	x2, x20
	bl	_xcb_randr_get_output_info
	str	w0, [x28], #4
	subs	x22, x22, #1
	b.ne	LBB0_6
; %bb.7:
	cmp	w25, #1
	b.ge	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_FREE
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.9:
	mov	sp, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #4
	add	x26, x26, #4
	subs	x25, x25, #1
	b.eq	LBB0_8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x26]
	mov	x2, #0
	bl	_xcb_randr_get_output_info_reply
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	ldr	w0, [x23]
	ldr	w1, [x21]
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_handle_output
	mov	x0, x22
	bl	_free
	b	LBB0_10
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ELOG
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Querying outputs using RandR \342\211\244 1.4\n"

	.comm	_conn,4,2                       ; @conn
	.comm	_root,4,2                       ; @root
	.comm	_primary,8,3                    ; @primary
l_.str.1:                               ; @.str.1
	.asciz	"Could not get RandR primary output\n"

l_.str.2:                               ; @.str.2
	.asciz	"primary output is %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not query screen resources.\n"

	.no_dead_strip	_randr_query_outputs_14
.subsections_via_symbols
