	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_gpu_getparam_ioctl
_virtio_gpu_getparam_ioctl:             ## @virtio_gpu_getparam_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.3:
	movq	(%rdi), %rcx
	xorl	%eax, %eax
	cmpl	$1, (%rcx)
	sete	%al
	jmp	LBB0_4
LBB0_1:
	movl	$1, %eax
LBB0_4:
	movl	%eax, -4(%rbp)
	movl	4(%rsi), %edi
	callq	_u64_to_user_ptr
	leaq	-4(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_virtio_gpu_getparam_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_gpu_getparam_ioctl
_virtio_gpu_getparam_ioctl:             ; @virtio_gpu_getparam_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w8, eq
	b	LBB0_4
LBB0_3:
	mov	w8, #1
LBB0_4:
	stur	w8, [x29, #-4]
	ldr	w0, [x1, #4]
	bl	_u64_to_user_ptr
	sub	x1, x29, #4
	mov	w2, #4
	bl	_copy_to_user
	cbz	x0, LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.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	_virtio_gpu_getparam_ioctl
.subsections_via_symbols
