	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_keymap
_print_keymap:                          ## @print_keymap
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GIO_KEYMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_GIO_DEADKEYMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpl	$0, -56(%rbp)
	jle	LBB0_7
## %bb.5:
	xorl	%r14d, %r14d
	movq	_stdout@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	-40(%rbp), %rdx
	addq	%r14, %rdx
	movl	%ebx, %esi
	callq	_print_key_definition_line
	incq	%rbx
	movslq	-56(%rbp), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	$10, %edi
	callq	_putchar
	movq	_NUM_DEADKEYS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.8:
	xorl	%r15d, %r15d
	movq	_stdout@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	-72(%rbp), %rdx
	addq	%r15, %rdx
	movl	%ebx, %esi
	callq	_print_accent_definition_line
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIO_KEYMAP,4,2                 ## @GIO_KEYMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getting keymap"

	.comm	_GIO_DEADKEYMAP,4,2             ## @GIO_DEADKEYMAP
	.comm	_stdout,4,2                     ## @stdout
	.comm	_NUM_DEADKEYS,4,2               ## @NUM_DEADKEYS
L_str:                                  ## @str
	.asciz	"#                                                         alt\n# scan                       cntrl          alt    alt   cntrl lock\n# code  base   shift  cntrl  shift  alt    shift  cntrl  shift state\n# ------------------------------------------------------------------"

	.no_dead_strip	_print_keymap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_keymap
_print_keymap:                          ; @print_keymap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, _GIO_KEYMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIO_KEYMAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	w0, #0
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh5:
	adrp	x8, _GIO_DEADKEYMAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GIO_DEADKEYMAP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w0, #0
	bl	_ioctl
	tbz	x0, #63, LBB0_4
; %bb.3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
LBB0_4:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [sp, #24]
Lloh10:
	adrp	x20, _stdout@GOTPAGE
Lloh11:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	mov	x19, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [sp, #40]
	add	x2, x8, x21
	mov	x1, x19
	bl	_print_key_definition_line
	add	x19, x19, #1
	ldrsw	x8, [sp, #24]
	add	x21, x21, #4
	cmp	x19, x8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #10
	bl	_putchar
Lloh12:
	adrp	x21, _NUM_DEADKEYS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NUM_DEADKEYS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
	mov	x19, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [sp, #8]
	add	x2, x8, x22
	mov	x1, x19
	bl	_print_accent_definition_line
	add	x19, x19, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x19, x8
	b.lt	LBB0_9
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GIO_KEYMAP,4,2                 ; @GIO_KEYMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getting keymap"

	.comm	_GIO_DEADKEYMAP,4,2             ; @GIO_DEADKEYMAP
	.comm	_stdout,4,2                     ; @stdout
	.comm	_NUM_DEADKEYS,4,2               ; @NUM_DEADKEYS
l_str:                                  ; @str
	.asciz	"#                                                         alt\n# scan                       cntrl          alt    alt   cntrl lock\n# code  base   shift  cntrl  shift  alt    shift  cntrl  shift state\n# ------------------------------------------------------------------"

	.no_dead_strip	_print_keymap
.subsections_via_symbols
