	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function session_by_x11_channel
_session_by_x11_channel:                ## @session_by_x11_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %edx
	movq	_sessions_nalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.1:
	movq	_sessions@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%r8, %rsi
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rsi, %rbx
	shlq	$4, %rbx
	movq	(%rcx,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rcx,%rbx)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %eax
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, %rbx
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%rdi), %eax
	addq	$4, %rdi
	cmpl	$-1, %eax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_debug
	xorl	%eax, %eax
	callq	_session_dump
	jmp	LBB0_11
LBB0_8:
	movl	%esi, %eax
	shlq	$4, %rax
	movl	8(%rcx,%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sessions_nalloc,4,2            ## @sessions_nalloc
	.comm	_sessions,8,3                   ## @sessions
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session_by_x11_channel: session %d channel %d"

L_.str.1:                               ## @.str.1
	.asciz	"session_by_x11_channel: unknown channel %d"

	.no_dead_strip	_session_by_x11_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function session_by_x11_channel
_session_by_x11_channel:                ; @session_by_x11_channel
	.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	x8, x0
Lloh0:
	adrp	x9, _sessions_nalloc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sessions_nalloc@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x10, #0
Lloh3:
	adrp	x11, _sessions@GOTPAGE
Lloh4:
	ldr	x11, [x11, _sessions@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x19, x11, x10, lsl #4
	ldr	x13, [x19]
	cbz	x13, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x19, #12]
	cbz	w12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x13]
	cmn	w12, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #4
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w12, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w12, [x13], #4
	cmn	w12, #1
	b.ne	LBB0_7
	b	LBB0_2
LBB0_9:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	bl	_debug
	bl	_session_dump
	mov	x19, #0
	b	LBB0_11
LBB0_10:
	add	x9, x11, w10, uxtw #4
	ldr	w1, [x9, #8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
LBB0_11:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sessions_nalloc,4,2            ; @sessions_nalloc
	.comm	_sessions,8,3                   ; @sessions
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session_by_x11_channel: session %d channel %d"

l_.str.1:                               ; @.str.1
	.asciz	"session_by_x11_channel: unknown channel %d"

	.no_dead_strip	_session_by_x11_channel
.subsections_via_symbols
