	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uhid_dev_create
_uhid_dev_create:                       ## @uhid_dev_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	48(%rsi), %r15
	testq	%r15, %r15
	jle	LBB0_2
## %bb.1:
	movq	_HID_MAX_DESCRIPTOR_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jg	LBB0_2
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movups	56(%rsi), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	72(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	76(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	80(%rsi), %r13d
	movl	84(%rsi), %r12d
	movl	88(%rsi), %esi
	leaq	40(%rbx), %rdi
	movq	%r15, %rdx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	36(%rbx), %edi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_memcpy
	movl	32(%rbx), %edi
	movl	%r13d, %esi
	movl	$4, %edx
	callq	_memcpy
	movl	28(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, (%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uhid_dev_create2               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_MAX_DESCRIPTOR_SIZE,8,3    ## @HID_MAX_DESCRIPTOR_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_uhid_dev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uhid_dev_create
_uhid_dev_create:                       ; @uhid_dev_create
	.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
	ldr	x21, [x1, #48]
Lloh0:
	adrp	x8, _HID_MAX_DESCRIPTOR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_MAX_DESCRIPTOR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, #1
	ccmp	x21, x8, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldur	q0, [x1, #56]
	str	q0, [sp]                        ; 16-byte Folded Spill
	ldp	w25, w22, [x1, #72]
	ldp	w23, w24, [x1, #80]
	add	x0, x1, #40
	ldr	w1, [x1, #88]
	mov	x2, x21
	bl	_copy_from_user
	cbz	x0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_5:
	ldr	w0, [x19, #36]
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #32]
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #28]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	str	x21, [x19]
	str	w25, [x19, #24]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_uhid_dev_create2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_MAX_DESCRIPTOR_SIZE,8,3    ; @HID_MAX_DESCRIPTOR_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_uhid_dev_create
.subsections_via_symbols
