	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_base_layer              ## -- Begin function update_base_layer
	.p2align	4, 0x90
_update_base_layer:                     ## @update_base_layer
	.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
	movq	_current_default_layer@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	__KEYPAD@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	__AUX@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movl	$1, %ebx
	movl	%edi, %ecx
	shlq	%cl, %rbx
	movq	%rbx, %rdi
	callq	_eeconfig_update_default_layer
	movq	%rbx, %rdi
	callq	_default_layer_set
	movq	__AUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_off
	movq	__KAUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_layer_off                      ## TAILCALL
LBB0_4:
	movq	__KAUX@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_layer_invert                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current_default_layer,4,2      ## @current_default_layer
	.comm	__AUX,4,2                       ## @_AUX
	.comm	__KAUX,4,2                      ## @_KAUX
	.comm	__KEYPAD,4,2                    ## @_KEYPAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_base_layer              ; -- Begin function update_base_layer
	.p2align	2
_update_base_layer:                     ; @update_base_layer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _current_default_layer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_default_layer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, __KEYPAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, __KEYPAD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, __AUX@GOTPAGE
Lloh7:
	ldr	x8, [x8, __AUX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w8, #1
	lsl	x19, x8, x0
	mov	x0, x19
	bl	_eeconfig_update_default_layer
	mov	x0, x19
	bl	_default_layer_set
Lloh8:
	adrp	x8, __AUX@GOTPAGE
Lloh9:
	ldr	x8, [x8, __AUX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_layer_off
Lloh11:
	adrp	x8, __KAUX@GOTPAGE
Lloh12:
	ldr	x8, [x8, __KAUX@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_layer_off
LBB0_4:
Lloh14:
	adrp	x8, __KAUX@GOTPAGE
Lloh15:
	ldr	x8, [x8, __KAUX@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_layer_invert
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_current_default_layer,4,2      ; @current_default_layer
	.comm	__AUX,4,2                       ; @_AUX
	.comm	__KAUX,4,2                      ; @_KAUX
	.comm	__KEYPAD,4,2                    ; @_KEYPAD
.subsections_via_symbols
