	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uhid_queue
_uhid_queue:                            ## @uhid_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movslq	(%rdi), %rcx
	leal	1(%rcx), %eax
	movq	_UHID_BUFSIZE@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	cmpl	4(%rdi), %edx
	jne	LBB0_1
## %bb.2:
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_hid_warn
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	movq	16(%rdi), %rax
	movq	%rbx, (%rax,%rcx,8)
	movl	%edx, (%rdi)
	addq	$12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UHID_BUFSIZE,4,2               ## @UHID_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Output queue is full\n"

	.no_dead_strip	_uhid_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uhid_queue
_uhid_queue:                            ; @uhid_queue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldp	w8, w10, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w9, w8, #1
Lloh0:
	adrp	x11, _UHID_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _UHID_BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	sdiv	w12, w9, w11
	msub	w9, w12, w11, w9
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hid_warn
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_2:
	ldr	x10, [x0, #16]
	str	x19, [x10, x8, lsl #3]
	str	w9, [x0], #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UHID_BUFSIZE,4,2               ; @UHID_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Output queue is full\n"

	.no_dead_strip	_uhid_queue
.subsections_via_symbols
