	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_input_get_drvdata
	movq	%rax, %r14
	movq	_EV_LED@GOTPCREL(%rip), %rax
	movl	$-1, %r15d
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_LED_KANA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	movl	%eax, %r15d
	movq	_LED_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	xorl	%ebx, %ebx
	orl	%r15d, %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, (%r14)
	movq	16(%r14), %rdi
	movl	4(%rdi), %eax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	addl	(%rdx), %eax
	je	LBB0_5
## %bb.2:
	movq	8(%r14), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movl	%ecx, (%rax)
	movl	24(%r14), %eax
	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	_err_hid
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	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	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb_submit_urb(leds) failed"

	.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	x21, x1
	mov	x20, x0
	bl	_input_get_drvdata
Lloh0:
	adrp	x8, _EV_LED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_LED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _LED_KANA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_KANA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	mov	x21, x0
Lloh6:
	adrp	x8, _LED_COMPOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_COMPOSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	orr	w8, w21, w0
	cmp	w8, #0
	cset	w8, ne
	lsl	w21, w8, #3
Lloh9:
	adrp	x8, _LED_SCROLLL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_SCROLLL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w21, w8, #2, #1
Lloh12:
	adrp	x8, _LED_CAPSL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LED_CAPSL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w21, w8, #1, #1
Lloh15:
	adrp	x8, _LED_NUML@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LED_NUML@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	orr	w8, w21, w8
	str	w8, [x19]
	ldr	x0, [x19, #16]
	ldr	w9, [x0, #4]
Lloh18:
	adrp	x10, _EINPROGRESS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _EINPROGRESS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmn	w9, w10
	b.eq	LBB0_5
; %bb.2:
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	cmp	w10, w8
	b.eq	LBB0_5
; %bb.3:
	str	w8, [x9]
	ldr	w8, [x19, #24]
	str	w8, [x0]
Lloh21:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	x0, LBB0_7
; %bb.4:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err_hid
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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	Lloh18, Lloh19, Lloh20
	.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	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.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	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb_submit_urb(leds) failed"

	.no_dead_strip	_usb_kbd_event
.subsections_via_symbols
