	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __usbhid_submit_report
___usbhid_submit_report:                ## @__usbhid_submit_report
	.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, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	(%rsi), %eax
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rsi)
	setg	%dl
	movq	_HID_QUIRK_NOGET@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	cmpb	%r15b, (%rsi)
	jne	LBB0_2
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	decl	%eax
	sarl	$3, %eax
	movb	%dl, %cl
	leal	(%rax,%rcx), %edi
	incl	%edi
	cmpq	$0, 48(%r12)
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	je	LBB0_17
## %bb.3:
	cmpb	%r15b, %al
	jne	LBB0_17
## %bb.4:
	movq	16(%r13), %rcx
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.5:
	movl	(%r12), %eax
	incl	%eax
	movq	_HID_OUTPUT_FIFO_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	decl	%ebx
	andl	%eax, %ebx
	cmpl	4(%r12), %ebx
	jne	LBB0_8
## %bb.6:
	addq	$4, %r14
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_17:
	movl	8(%r12), %ecx
	leal	1(%rcx), %edx
	movq	_HID_CONTROL_FIFO_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	decl	%ebx
	andl	%edx, %ebx
	cmpl	12(%r12), %ebx
	jne	LBB0_19
## %bb.18:
	addq	$4, %r14
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_19:
	cmpb	%r15b, %al
	jne	LBB0_23
## %bb.20:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	40(%r12), %rcx
	movslq	8(%r12), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, 16(%rcx,%rdx,8)
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_hid_output_report
	movl	8(%r12), %ecx
LBB0_23:
	movq	40(%r12), %rax
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%r13, 8(%rax,%rcx,8)
	movb	%r15b, (%rax,%rcx,8)
	movl	%ebx, 8(%r12)
	movq	_HID_CTRL_RUNNING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	32(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_24
## %bb.26:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	24(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_25
## %bb.27:
	movq	16(%r12), %rdi
	jmp	LBB0_16
LBB0_8:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	64(%r12), %rcx
	movslq	(%r12), %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_hid_output_report
	movq	64(%r12), %rax
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movq	%r13, (%rax,%rcx)
	movl	%ebx, (%r12)
	movq	_HID_OUT_RUNNING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	32(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	56(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_25
## %bb.15:
	movq	48(%r12), %rdi
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_unlink_urb                 ## TAILCALL
LBB0_24:
	movq	%r14, %rdi
	callq	_hid_submit_ctrl
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_25
LBB0_21:
	addq	$4, %r14
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	addq	$4, %r14
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	movq	%r14, %rdi
	callq	_hid_submit_out
	testq	%rax, %rax
	je	LBB0_25
LBB0_13:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_QUIRK_NOGET,4,2            ## @HID_QUIRK_NOGET
	.comm	_USB_DIR_IN,1,0                 ## @USB_DIR_IN
	.comm	_USB_DIR_OUT,1,0                ## @USB_DIR_OUT
	.comm	_HID_OUTPUT_REPORT,8,3          ## @HID_OUTPUT_REPORT
	.comm	_HID_OUTPUT_FIFO_SIZE,4,2       ## @HID_OUTPUT_FIFO_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"output queue full\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"output queueing failed\n"

	.comm	_HID_OUT_RUNNING,4,2            ## @HID_OUT_RUNNING
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_HID_CONTROL_FIFO_SIZE,4,2      ## @HID_CONTROL_FIFO_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"control queue full\n"

L_.str.3:                               ## @.str.3
	.asciz	"control queueing failed\n"

	.comm	_HID_CTRL_RUNNING,4,2           ## @HID_CTRL_RUNNING
	.no_dead_strip	___usbhid_submit_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __usbhid_submit_report
___usbhid_submit_report:                ; @__usbhid_submit_report
	.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
	ldr	w8, [x1]
	sub	w8, w8, #1
	asr	w8, w8, #3
	ldr	x9, [x1, #8]
	cmp	x9, #0
	cinc	w8, w8, gt
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _HID_QUIRK_NOGET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HID_QUIRK_NOGET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh3:
	adrp	x10, _USB_DIR_IN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USB_DIR_IN@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, #0
	ccmp	w10, w2, #0, ne
	b.eq	LBB0_24
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	add	w0, w8, #1
	ldr	x9, [x22, #48]
Lloh5:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	x9, #0
	ccmp	w8, w2, #0, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x20, #16]
Lloh7:
	adrp	x10, _HID_OUTPUT_REPORT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldp	w8, w9, [x22]
	add	w8, w8, #1
Lloh10:
	adrp	x10, _HID_OUTPUT_FIFO_SIZE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _HID_OUTPUT_FIFO_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	sub	w10, w10, #1
	and	w21, w10, w8
	cmp	w21, w9
	b.ne	LBB0_14
; %bb.4:
	add	x0, x19, #4
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldp	w9, w10, [x22, #8]
	add	w11, w9, #1
Lloh15:
	adrp	x12, _HID_CONTROL_FIFO_SIZE@GOTPAGE
Lloh16:
	ldr	x12, [x12, _HID_CONTROL_FIFO_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	sub	w12, w12, #1
	and	w23, w12, w11
	cmp	w23, w10
	b.ne	LBB0_8
; %bb.6:
	add	x0, x19, #4
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	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	_dev_warn
LBB0_8:
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.9:
Lloh20:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_kmalloc
	ldr	x8, [x22, #40]
	ldrsw	x9, [x22, #8]
	mov	w10, #24
	madd	x8, x9, x10, x8
	str	x0, [x8, #16]
	cbz	x0, LBB0_21
; %bb.10:
	mov	x1, x0
	mov	x0, x20
	bl	_hid_output_report
	ldr	w9, [x22, #8]
LBB0_11:
	ldr	x8, [x22, #40]
	mov	w10, #24
	smaddl	x8, w9, w10, x8
	str	x20, [x8, #8]
	strb	w21, [x8]
	str	w23, [x22, #8]
Lloh23:
	adrp	x21, _HID_CTRL_RUNNING@GOTPAGE
Lloh24:
	ldr	x21, [x21, _HID_CTRL_RUNNING@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x20, x22, #32
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	w0, LBB0_19
; %bb.12:
Lloh25:
	adrp	x8, _jiffies@GOTPAGE
Lloh26:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x8, [x22, #24]
Lloh28:
	adrp	x9, _HZ@GOTPAGE
Lloh29:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh30:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x1, x8, x9
	bl	_time_after
	cbz	x0, LBB0_24
; %bb.13:
	ldr	x0, [x22, #16]
	b	LBB0_18
LBB0_14:
Lloh31:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_kmalloc
	ldr	x8, [x22, #64]
	ldrsw	x9, [x22]
	add	x8, x8, x9, lsl #4
	str	x0, [x8, #8]
	cbz	x0, LBB0_22
; %bb.15:
	mov	x1, x0
	mov	x0, x20
	bl	_hid_output_report
	ldr	x8, [x22, #64]
	ldrsw	x9, [x22]
	lsl	x9, x9, #4
	str	x20, [x8, x9]
	str	w21, [x22]
Lloh34:
	adrp	x21, _HID_OUT_RUNNING@GOTPAGE
Lloh35:
	ldr	x21, [x21, _HID_OUT_RUNNING@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x20, x22, #32
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	w0, LBB0_23
; %bb.16:
Lloh36:
	adrp	x8, _jiffies@GOTPAGE
Lloh37:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x22, #56]
Lloh39:
	adrp	x9, _HZ@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh41:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x1, x8, x9
	bl	_time_after
	cbz	x0, LBB0_24
; %bb.17:
	ldr	x0, [x22, #48]
LBB0_18:
	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	_usb_unlink_urb
LBB0_19:
	mov	x0, x19
	bl	_hid_submit_ctrl
	cbz	x0, LBB0_24
LBB0_20:
	ldr	w0, [x21]
	mov	x1, x20
	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	_clear_bit
LBB0_21:
	add	x0, x19, #4
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_22:
	add	x0, x19, #4
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_23:
	mov	x0, x19
	bl	_hid_submit_out
	cbnz	x0, LBB0_20
LBB0_24:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_QUIRK_NOGET,4,2            ; @HID_QUIRK_NOGET
	.comm	_USB_DIR_IN,1,0                 ; @USB_DIR_IN
	.comm	_USB_DIR_OUT,1,0                ; @USB_DIR_OUT
	.comm	_HID_OUTPUT_REPORT,8,3          ; @HID_OUTPUT_REPORT
	.comm	_HID_OUTPUT_FIFO_SIZE,4,2       ; @HID_OUTPUT_FIFO_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"output queue full\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"output queueing failed\n"

	.comm	_HID_OUT_RUNNING,4,2            ; @HID_OUT_RUNNING
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_HID_CONTROL_FIFO_SIZE,4,2      ; @HID_CONTROL_FIFO_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"control queue full\n"

l_.str.3:                               ; @.str.3
	.asciz	"control queueing failed\n"

	.comm	_HID_CTRL_RUNNING,4,2           ; @HID_CTRL_RUNNING
	.no_dead_strip	___usbhid_submit_report
.subsections_via_symbols
