	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_surround_type                  ## -- Begin function surround_type
	.p2align	4, 0x90
_surround_type:                         ## @surround_type
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_KC_LSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_register_code
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.3:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_tap_code
	decl	%ebx
	jne	LBB0_4
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movq	_KC_LSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unregister_code
LBB0_7:
	cmpl	$2, %r15d
	jl	LBB0_10
## %bb.8:
	movl	%r15d, %ebx
	shrl	$31, %ebx
	addl	%r15d, %ebx
	sarl	%ebx
	movq	_KC_LEFT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_tap_code
	decl	%ebx
	jne	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KC_LSFT,4,2                    ## @KC_LSFT
	.comm	_KC_LEFT,4,2                    ## @KC_LEFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_surround_type                  ; -- Begin function surround_type
	.p2align	2
_surround_type:                         ; @surround_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _KC_LSFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KC_LSFT@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_register_code
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_tap_code
	subs	w23, w23, #1
	b.ne	LBB0_4
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	ldr	w0, [x22]
	bl	_unregister_code
LBB0_7:
	cmp	w19, #0
	cinc	w8, w19, lt
	cmp	w19, #2
	b.lt	LBB0_10
; %bb.8:
	asr	w19, w8, #1
Lloh2:
	adrp	x20, _KC_LEFT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _KC_LEFT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_tap_code
	subs	w19, w19, #1
	b.ne	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_KC_LSFT,4,2                    ; @KC_LSFT
	.comm	_KC_LEFT,4,2                    ; @KC_LEFT
.subsections_via_symbols
