	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_kbd_event
_usb_kbd_event:                         ## @usb_kbd_event
	.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	%esi, %ebx
	movq	%rdi, %r12
	callq	_input_get_drvdata
	movq	%rax, %r15
	movq	_EV_LED@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%ebx, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	%r15, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_LED_KANA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	movl	%eax, %r13d
	movq	_LED_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	xorl	%ebx, %ebx
	orl	%r13d, %eax
	setne	%bl
	shll	$3, %ebx
	movq	_LED_SCROLLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	(%rbx,%rcx,4), %ebx
	movq	_LED_CAPSL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	(%rbx,%rcx,2), %ebx
	movq	_LED_NUML@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	orl	%ebx, %ecx
	movl	%ecx, (%r15)
	cmpl	$0, 4(%r15)
	jne	LBB0_6
## %bb.2:
	movq	8(%r15), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_6
## %bb.3:
	movl	%ecx, (%rax)
	movl	32(%r15), %eax
	movq	24(%r15), %rdi
	movl	%eax, (%rdi)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_6
LBB0_5:
	movl	$1, 4(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_LED,4,2                     ## @EV_LED
	.comm	_LED_KANA,4,2                   ## @LED_KANA
	.comm	_LED_COMPOSE,4,2                ## @LED_COMPOSE
	.comm	_LED_SCROLLL,4,2                ## @LED_SCROLLL
	.comm	_LED_CAPSL,4,2                  ## @LED_CAPSL
	.comm	_LED_NUML,4,2                   ## @LED_NUML
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb_submit_urb(leds) failed\n"

	.no_dead_strip	_usb_kbd_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_kbd_event
_usb_kbd_event:                         ; @usb_kbd_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_input_get_drvdata
Lloh0:
	adrp	x8, _EV_LED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_LED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _LED_KANA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_KANA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_test_bit
	mov	x22, x0
Lloh6:
	adrp	x8, _LED_COMPOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_COMPOSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_test_bit
	orr	w8, w22, w0
	cmp	w8, #0
	cset	w8, ne
	lsl	w22, w8, #3
Lloh9:
	adrp	x8, _LED_SCROLLL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_SCROLLL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w22, w8, #2, #1
Lloh12:
	adrp	x8, _LED_CAPSL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LED_CAPSL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w22, w8, #1, #1
Lloh15:
	adrp	x8, _LED_NUML@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LED_NUML@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	orr	w8, w22, w8
	str	w8, [x20]
	ldr	w9, [x20, #4]
	cbnz	w9, LBB0_7
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	cmp	w10, w8
	b.eq	LBB0_7
; %bb.3:
	str	w8, [x9]
	ldr	w8, [x20, #32]
	ldr	x0, [x20, #24]
	str	w8, [x0]
Lloh18:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	x0, LBB0_6
; %bb.4:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_LED,4,2                     ; @EV_LED
	.comm	_LED_KANA,4,2                   ; @LED_KANA
	.comm	_LED_COMPOSE,4,2                ; @LED_COMPOSE
	.comm	_LED_SCROLLL,4,2                ; @LED_SCROLLL
	.comm	_LED_CAPSL,4,2                  ; @LED_CAPSL
	.comm	_LED_NUML,4,2                   ; @LED_NUML
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb_submit_urb(leds) failed\n"

	.no_dead_strip	_usb_kbd_event
.subsections_via_symbols
