	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_legacy_modeset_ctl_ioctl   ## -- Begin function drm_legacy_modeset_ctl_ioctl
	.p2align	4, 0x90
_drm_legacy_modeset_ctl_ioctl:          ## @drm_legacy_modeset_ctl_ioctl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_DRIVER_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	(%r15), %esi
	cmpl	(%rbx), %esi
	jae	LBB0_7
## %bb.3:
	movl	4(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_drm_legacy_vblank_pre_modeset
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_drm_legacy_vblank_post_modeset
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_LEGACY,4,2              ## @DRIVER_LEGACY
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_legacy_modeset_ctl_ioctl   ; -- Begin function drm_legacy_modeset_ctl_ioctl
	.p2align	2
_drm_legacy_modeset_ctl_ioctl:          ; @drm_legacy_modeset_ctl_ioctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DRIVER_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	w0, LBB0_9
; %bb.2:
	ldr	w1, [x20]
	ldr	w8, [x19]
	cmp	w1, w8
	b.hs	LBB0_6
; %bb.3:
	ldr	w8, [x20, #4]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_drm_legacy_vblank_pre_modeset
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_drm_legacy_vblank_post_modeset
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_LEGACY,4,2              ; @DRIVER_LEGACY
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
