	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ishtp_enum_enum_devices
_ishtp_enum_enum_devices:               ## @ishtp_enum_enum_devices
	.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	_ishtp_get_client_data
	movq	%rax, %r13
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HOSTIF_DM_ENUM_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_ishtp_cl_send
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	cmpl	$0, 16(%r13)
	je	LBB0_2
LBB0_9:
	cmpl	$0, 12(%r13)
	je	LBB0_10
## %bb.11:
	movl	4(%r13), %edi
	movl	8(%r13), %eax
	movl	%eax, (%r13)
	callq	_ishtp_device
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	movq	_HZ@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r13), %edi
	movl	(%r12), %eax
	leal	(%rax,%rax,2), %edx
	xorl	%esi, %esi
	callq	_wait_event_interruptible_timeout
	cmpl	$0, 16(%r13)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_ishtp_cl_send
	movl	16(%r13), %eax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$9, %ebx
	movl	%ecx, %ebx
	jb	LBB0_3
LBB0_6:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	callq	_cl_data_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_10:
	movq	%r13, %rdi
	callq	_cl_data_to_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTIF_DM_ENUM_DEVICES,4,2     ## @HOSTIF_DM_ENUM_DEVICES
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[hid-ish]: timed out waiting for enum_devices\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"[hid-ish]: failed to allocate HID dev structures\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"[hid-ish]: enum_devices_done OK, num_hid_devices=%d\n"

	.no_dead_strip	_ishtp_enum_enum_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ishtp_enum_enum_devices
_ishtp_enum_enum_devices:               ; @ishtp_enum_enum_devices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	_ishtp_get_client_data
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _HOSTIF_DM_ENUM_DEVICES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOSTIF_DM_ENUM_DEVICES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_ishtp_cl_send
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_4
LBB0_2:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_9
; %bb.3:
	ldp	w0, w8, [x19, #4]
	str	w8, [x19]
	bl	_ishtp_device
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	b	LBB0_11
LBB0_4:
	mov	w21, #0
Lloh5:
	adrp	x22, _HZ@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #20]
	ldr	w8, [x22]
	add	w2, w8, w8, lsl #1
	mov	w1, #0
	bl	_wait_event_interruptible_timeout
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w21, #1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_ishtp_cl_send
	ldr	w8, [x19, #16]
	cmp	w8, #0
	ccmp	w21, #9, #2, eq
	mov	x21, x23
	b.lo	LBB0_5
; %bb.7:
	cbnz	w8, LBB0_2
; %bb.8:
	mov	x0, x19
	bl	_cl_data_to_dev
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_cl_data_to_dev
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTIF_DM_ENUM_DEVICES,4,2     ; @HOSTIF_DM_ENUM_DEVICES
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[hid-ish]: timed out waiting for enum_devices\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"[hid-ish]: failed to allocate HID dev structures\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"[hid-ish]: enum_devices_done OK, num_hid_devices=%d\n"

	.no_dead_strip	_ishtp_enum_enum_devices
.subsections_via_symbols
