	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_mod_mask_for               ## -- Begin function get_mod_mask_for
	.p2align	4, 0x90
_get_mod_mask_for:                      ## @get_mod_mask_for
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rdx, %rdi
	callq	_xcb_get_modifier_mapping_keycodes
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_xcb_key_symbols_get_keycode
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	(%r15), %r10d
	movslq	%r10d, %r8
	movq	%rax, %r9
	addq	$8, %r9
	xorl	%r15d, %r15d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	testl	%r10d, %r10d
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r11
	imulq	%r8, %r11
	movq	(%rax), %rbx
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rsi
	cmpq	%r10, %rsi
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%r11,%rsi), %rcx
	movq	(%r14,%rcx,8), %rcx
	movq	%r9, %rdi
	movq	%rbx, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rcx, %rdx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=3
	movq	(%rdi), %rdx
	addq	$8, %rdi
	testq	%rdx, %rdx
	jne	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	$8, %r15
	jne	LBB0_2
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	%rax, %rdi
	callq	_free
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	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_mod_mask_for               ; -- Begin function get_mod_mask_for
	.p2align	2
_get_mod_mask_for:                      ; @get_mod_mask_for
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_xcb_get_modifier_mapping_keycodes
	mov	x19, x0
	mov	x0, x21
	mov	x1, x22
	bl	_xcb_key_symbols_get_keycode
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, #0
	ldr	w8, [x20]
	sxtw	x9, w8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, #0
	mul	x11, x21, x9
	ldr	x12, [x0]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x10, x10, #1
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	cbz	x12, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x13, x11, x10
	ldr	x13, [x19, x13, lsl #3]
	mov	w14, #8
	mov	x15, x12
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x15, x13
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	ldr	x15, [x0, x14]
	add	x14, x14, #8
	cbnz	x15, LBB0_7
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x21, #8
	b.ne	LBB0_2
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	bl	_free
	mov	w8, #1
	lsl	w0, w8, w21
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
