	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_kb                     ## -- Begin function led_set_kb
	.p2align	4, 0x90
_led_set_kb:                            ## @led_set_kb
	.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
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_is_keyboard_master
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_IS_LED_ON
	movq	_serial_m2s_buffer@GOTPCREL(%rip), %r13
	movq	%rax, 16(%r13)
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_IS_LED_ON
	movq	%rax, 8(%r13)
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_IS_LED_ON
	movq	%rax, (%r13)
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_IS_LED_ON
	movl	$3, %edi
	movq	%rax, %rsi
	callq	_led_toggle
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_IS_LED_ON
	movl	$4, %edi
	movq	%rax, %rsi
	callq	_led_toggle
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_IS_LED_ON
	movl	$5, %edi
	movq	%rax, %rsi
	callq	_led_toggle
LBB0_2:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_set_user                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_serial_m2s_buffer,24,3         ## @serial_m2s_buffer
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_set_kb                     ; -- Begin function led_set_kb
	.p2align	2
_led_set_kb:                            ; @led_set_kb
	.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	x19, x0
	bl	_is_keyboard_master
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _USB_LED_NUM_LOCK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USB_LED_NUM_LOCK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IS_LED_ON
Lloh2:
	adrp	x21, _serial_m2s_buffer@GOTPAGE
Lloh3:
	ldr	x21, [x21, _serial_m2s_buffer@GOTPAGEOFF]
	str	x0, [x21, #16]
Lloh4:
	adrp	x22, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IS_LED_ON
	str	x0, [x21, #8]
Lloh6:
	adrp	x23, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IS_LED_ON
	str	x0, [x21]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IS_LED_ON
	mov	x1, x0
	mov	w0, #3
	bl	_led_toggle
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IS_LED_ON
	mov	x1, x0
	mov	w0, #4
	bl	_led_toggle
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IS_LED_ON
	mov	x1, x0
	mov	w0, #5
	bl	_led_toggle
LBB0_2:
	mov	x0, x19
	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
	b	_led_set_user
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_serial_m2s_buffer,24,3         ; @serial_m2s_buffer
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
.subsections_via_symbols
