	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_query_item
_copy_query_item:                       ## @copy_query_item
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r14
	movslq	%ebx, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%r14), %edi
	callq	_u64_to_user_ptr
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_copy_from_user
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%r14), %edi
	callq	_u64_to_user_ptr
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_access_ok
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_copy_query_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_query_item
_copy_query_item:                       ; @copy_query_item
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	ldr	x8, [x3]
	cbz	x8, LBB0_6
; %bb.1:
	cmp	x8, w19, sxtw
	b.ge	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x3, #8]
	bl	_u64_to_user_ptr
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_copy_from_user
	cbz	x0, LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x20, #8]
	bl	_u64_to_user_ptr
	mov	x1, x19
	bl	_access_ok
	cbz	w0, LBB0_4
; %bb.8:
	mov	w19, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_copy_query_item
.subsections_via_symbols
