	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ishtp_get_hid_descriptor
_ishtp_get_hid_descriptor:              ## @ishtp_get_hid_descriptor
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ishtp_get_client_data
	movq	%rax, %r14
	movl	$0, (%rax)
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_HOSTIF_GET_HID_DESCRIPTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	24(%r14), %rax
	movslq	%r15d, %r15
	movl	(%rax,%r15,4), %eax
	movl	%eax, -40(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_ishtp_cl_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	cmpl	$0, (%r14)
	movl	$0, %ebx
	jne	LBB0_7
## %bb.2:
	movl	16(%r14), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_wait_event_interruptible_timeout
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	cmpl	$0, (%rax,%r15,4)
	jne	LBB0_7
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_6
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %rbx
LBB0_6:
	movq	%r14, %rdi
	callq	_cl_data_to_dev
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTIF_GET_HID_DESCRIPTOR,4,2  ## @HOSTIF_GET_HID_DESCRIPTOR
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[hid-ish]: timed out for hid_descr_done\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"[hid-ish]: allocation HID desc fail\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ishtp_get_hid_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ishtp_get_hid_descriptor
_ishtp_get_hid_descriptor:              ; @ishtp_get_hid_descriptor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_ishtp_get_client_data
	mov	x19, x0
	str	wzr, [x0]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _HOSTIF_GET_HID_DESCRIPTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOSTIF_GET_HID_DESCRIPTOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	ldr	w9, [x9, w20, sxtw #2]
	stp	w9, w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #8
	bl	_ishtp_cl_send
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #1
	mov	w1, #0
	bl	_wait_event_interruptible_timeout
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	sxtw	x8, w20
	ldr	x9, [x19, #8]
	ldr	w8, [x9, x8, lsl #2]
	cbnz	w8, LBB0_2
; %bb.5:
Lloh6:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x21, _EIO@GOTPAGE
Lloh11:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str@PAGE
Lloh13:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_cl_data_to_dev
	mov	x1, x20
	bl	_dev_err
	ldr	w8, [x21]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTIF_GET_HID_DESCRIPTOR,4,2  ; @HOSTIF_GET_HID_DESCRIPTOR
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[hid-ish]: timed out for hid_descr_done\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"[hid-ish]: allocation HID desc fail\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ishtp_get_hid_descriptor
.subsections_via_symbols
