	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidp_queue_event
_hidp_queue_event:                      ## @hidp_queue_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	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_BT_DBG
	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, %ebx
	movq	_LED_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	orl	%ebx, %eax
	setne	%r15b
	shlb	$3, %r15b
	movq	_LED_SCROLLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	testl	%eax, %eax
	setne	%r13b
	shlb	$2, %r13b
	orb	%r15b, %r13b
	movq	_LED_CAPSL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	testl	%eax, %eax
	setne	%bl
	addb	%bl, %bl
	orb	%r13b, %bl
	movq	_LED_NUML@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_bit
	testl	%eax, %eax
	setne	%r13b
	orb	%bl, %r13b
	xorl	%r15d, %r15d
	cmpb	%r13b, (%r14)
	je	LBB0_5
## %bb.2:
	movb	%r13b, (%r14)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movzbl	%r13b, %r13d
	movq	_HIDP_TRANS_DATA@GOTPCREL(%rip), %rax
	movq	_HIDP_DATA_RTYPE_OUPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skb_put
	movl	%ebx, (%rax)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skb_put
	movl	$1, (%rax)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skb_put
	movl	%r13d, (%rax)
	leaq	4(%r14), %rdi
	movq	%r12, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_hidp_schedule
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p type %d code %d value %d"

	.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
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for new frame"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HIDP_TRANS_DATA,4,2            ## @HIDP_TRANS_DATA
	.comm	_HIDP_DATA_RTYPE_OUPUT,4,2      ## @HIDP_DATA_RTYPE_OUPUT
	.no_dead_strip	_hidp_queue_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidp_queue_event
_hidp_queue_event:                      ; @hidp_queue_event
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
Lloh2:
	adrp	x8, _EV_LED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_LED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _LED_KANA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED_KANA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	mov	x21, x0
Lloh8:
	adrp	x8, _LED_COMPOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LED_COMPOSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	orr	w8, w21, w0
	cmp	w8, #0
	cset	w8, ne
	lsl	w21, w8, #3
Lloh11:
	adrp	x8, _LED_SCROLLL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LED_SCROLLL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w21, w8, #2, #1
Lloh14:
	adrp	x8, _LED_CAPSL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LED_CAPSL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	bfi	w21, w8, #1, #1
Lloh17:
	adrp	x8, _LED_NUML@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LED_NUML@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, ne
	orr	w21, w21, w8
	ldrb	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_4
; %bb.2:
	strb	w21, [x19]
Lloh20:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w0, #3
	bl	_alloc_skb
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh23:
	adrp	x8, _HIDP_TRANS_DATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HIDP_TRANS_DATA@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _HIDP_DATA_RTYPE_OUPUT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HIDP_DATA_RTYPE_OUPUT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	w23, #1
	mov	w1, #1
	bl	_skb_put
	str	w22, [x0]
	mov	x0, x20
	mov	w1, #1
	bl	_skb_put
	str	w23, [x0]
	mov	x0, x20
	mov	w1, #1
	bl	_skb_put
	str	w21, [x0]
	add	x0, x19, #4
	mov	x1, x20
	bl	_skb_queue_tail
	mov	x0, x19
	bl	_hidp_schedule
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
LBB0_7:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p type %d code %d value %d"

	.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
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for new frame"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HIDP_TRANS_DATA,4,2            ; @HIDP_TRANS_DATA
	.comm	_HIDP_DATA_RTYPE_OUPUT,4,2      ; @HIDP_DATA_RTYPE_OUPUT
	.no_dead_strip	_hidp_queue_event
.subsections_via_symbols
