	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparse_keymap_setup            ## -- Begin function sparse_keymap_setup
	.p2align	4, 0x90
_sparse_keymap_setup:                   ## @sparse_keymap_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	_KE_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %r13d
	cmpq	%rax, (%rsi)
	je	LBB0_3
## %bb.1:
	leaq	16(%rsi), %rcx
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r13
	leaq	16(%rcx), %rdx
	cmpq	%rax, (%rcx)
	movq	%rdx, %rcx
	jne	LBB0_2
LBB0_3:
	leaq	40(%r12), %rdi
	movq	%r13, %rdx
	shlq	$4, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_devm_kmemdup
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	testq	%r13, %r13
	je	LBB0_14
## %bb.5:
	movq	%r13, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_EV_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r12), %esi
	callq	___set_bit
	movl	8(%rbx), %edi
	movl	36(%r12), %esi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	___set_bit
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rbx
	decq	%r15
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*%r14
	testl	%eax, %eax
	jne	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	leaq	-128(%rax), %rcx
	cmpq	$2, %rcx
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$130, %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r12), %esi
	callq	___set_bit
	movl	12(%rbx), %edi
	movl	32(%r12), %esi
	jmp	LBB0_12
LBB0_14:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r12), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_KEY_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	___set_bit
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r12), %esi
	callq	___set_bit
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %esi
	callq	___set_bit
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	%r13, (%r12)
	movq	_sparse_keymap_getkeycode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_sparse_keymap_setkeycode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KE_END,8,3                     ## @KE_END
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_SW,4,2                      ## @EV_SW
	.comm	_KEY_UNKNOWN,4,2                ## @KEY_UNKNOWN
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_sparse_keymap_getkeycode,4,2   ## @sparse_keymap_getkeycode
	.comm	_sparse_keymap_setkeycode,4,2   ## @sparse_keymap_setkeycode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparse_keymap_setup            ; -- Begin function sparse_keymap_setup
	.p2align	2
_sparse_keymap_setup:                   ; @sparse_keymap_setup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _KE_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KE_END@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x1]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #1
	b	LBB0_4
LBB0_2:
	add	x9, x1, #16
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x23, #1
	ldr	x10, [x9], #16
	cmp	x10, x8
	b.ne	LBB0_3
LBB0_4:
	add	x0, x19, #40
	lsl	x2, x23, #4
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_devm_kmemdup
	cbz	x0, LBB0_18
; %bb.5:
	mov	x21, x0
	cbz	x23, LBB0_15
; %bb.6:
Lloh6:
	adrp	x24, _EV_SW@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EV_SW@GOTPAGEOFF]
Lloh8:
	adrp	x25, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EV_KEY@GOTPAGEOFF]
	mov	x26, x23
	mov	x22, x21
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x19, #28]
	bl	___set_bit
	ldr	w0, [x22, #8]
	ldr	w1, [x19, #36]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	bl	___set_bit
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #16
	subs	x26, x26, #1
	b.eq	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x22
	blr	x20
	cbnz	w0, LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22]
	sub	x9, x8, #128
	cmp	x9, #2
	b.lo	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, #130
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x19, #28]
	bl	___set_bit
	ldr	w0, [x22, #12]
	ldr	w1, [x19, #32]
	b	LBB0_8
LBB0_15:
Lloh10:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x19, #28]
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.16:
Lloh13:
	adrp	x8, _KEY_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEY_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	___set_bit
Lloh16:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x19, #28]
	bl	___set_bit
Lloh19:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	___set_bit
LBB0_17:
	mov	w0, #0
	str	x21, [x19, #16]
	str	x23, [x19]
Lloh22:
	adrp	x8, _sparse_keymap_getkeycode@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sparse_keymap_getkeycode@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _sparse_keymap_setkeycode@GOTPAGE
Lloh26:
	ldr	x9, [x9, _sparse_keymap_setkeycode@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	b	LBB0_19
LBB0_18:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_KE_END,8,3                     ; @KE_END
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_SW,4,2                      ; @EV_SW
	.comm	_KEY_UNKNOWN,4,2                ; @KEY_UNKNOWN
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_sparse_keymap_getkeycode,4,2   ; @sparse_keymap_getkeycode
	.comm	_sparse_keymap_setkeycode,4,2   ; @sparse_keymap_setkeycode
.subsections_via_symbols
