	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_post_reset
_hid_post_reset:                        ## @hid_post_reset
	.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
	movq	%rdi, %r14
	callq	_interface_to_usbdev
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_usb_get_intfdata
	movq	%rax, %r13
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r12
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	_HID_DT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_hid_get_class_descriptor
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_memcmp
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_kfree
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg_hid
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_HID_RESET_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r12
	movq	%r12, %rsi
	callq	_clear_bit
	movq	_HID_CLEAR_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	(%r14), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hid_set_idle
	movq	%r13, %rdi
	callq	_hid_restart_io
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HID_DT_REPORT,4,2              ## @HID_DT_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading report descriptor failed (post_reset)\n"

L_.str.1:                               ## @.str.1
	.asciz	"report descriptor changed\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_HID_RESET_PENDING,4,2          ## @HID_RESET_PENDING
	.comm	_HID_CLEAR_HALT,4,2             ## @HID_CLEAR_HALT
	.no_dead_strip	_hid_post_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_post_reset
_hid_post_reset:                        ; @hid_post_reset
	.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	x20, x0
	bl	_interface_to_usbdev
	mov	x21, x0
	mov	x0, x20
	bl	_usb_get_intfdata
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x24, [x20]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	w1, [x24]
Lloh3:
	adrp	x8, _HID_DT_REPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_DT_REPORT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w4, [x19]
	mov	x0, x21
	mov	x3, x23
	bl	_hid_get_class_descriptor
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldp	w2, w1, [x19]
	mov	x0, x23
	bl	_memcmp
	mov	x24, x0
	mov	x0, x23
	bl	_kfree
	cbz	w24, LBB0_7
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg_hid
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_6:
	mov	x24, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	mov	x0, x23
	bl	_kfree
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	bl	_spin_lock_irq
Lloh14:
	adrp	x8, _HID_RESET_PENDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HID_RESET_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x23, x22, #4
	mov	x1, x23
	bl	_clear_bit
Lloh17:
	adrp	x8, _HID_CLEAR_HALT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HID_CLEAR_HALT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_clear_bit
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_hid_set_idle
	mov	x0, x19
	bl	_hid_restart_io
LBB0_8:
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HID_DT_REPORT,4,2              ; @HID_DT_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading report descriptor failed (post_reset)\n"

l_.str.1:                               ; @.str.1
	.asciz	"report descriptor changed\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_HID_RESET_PENDING,4,2          ; @HID_RESET_PENDING
	.comm	_HID_CLEAR_HALT,4,2             ; @HID_CLEAR_HALT
	.no_dead_strip	_hid_post_reset
.subsections_via_symbols
