	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_get_class_descriptor
_hid_get_class_descriptor:              ## @hid_get_class_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	%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	%r8d, %r12d
	movq	%rcx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	%r8d, %edx
	callq	_memset
	movl	$-3, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_REQ_GET_DESCRIPTOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_USB_CTRL_GET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%r12
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	%r12d, %eax
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r13), %ecx
	testl	%r13d, %r13d
	movl	%ecx, %r13d
	jne	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_REQ_GET_DESCRIPTOR,4,2     ## @USB_REQ_GET_DESCRIPTOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ## @USB_CTRL_GET_TIMEOUT
	.no_dead_strip	_hid_get_class_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_get_class_descriptor
_hid_get_class_descriptor:              ; @hid_get_class_descriptor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	mov	w1, #0
	mov	x2, x4
	bl	_memset
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x23, _USB_REQ_GET_DESCRIPTOR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _USB_REQ_GET_DESCRIPTOR@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x24, _USB_RECIP_INTERFACE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _USB_DIR_IN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _USB_DIR_IN@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
Lloh6:
	adrp	x26, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x26]
	str	w8, [sp]
	mov	x0, x22
	mov	w4, #0
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	cmp	w0, w19
	b.ge	LBB0_4
; %bb.1:
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	ldr	w8, [x26]
	str	w8, [sp]
	mov	x0, x22
	mov	w4, #0
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	cmp	w0, w19
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	ldr	w8, [x26]
	str	w8, [sp]
	mov	x0, x22
	mov	w4, #0
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	cmp	w0, w19
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	ldr	w8, [x26]
	str	w8, [sp]
	mov	x0, x22
	mov	w4, #0
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_REQ_GET_DESCRIPTOR,4,2     ; @USB_REQ_GET_DESCRIPTOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ; @USB_CTRL_GET_TIMEOUT
	.no_dead_strip	_hid_get_class_descriptor
.subsections_via_symbols
