	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_mode_validate_basic
_drm_mode_validate_basic:               ## @drm_mode_validate_basic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DRM_MODE_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	movq	_MODE_BAD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rdi)
	jne	LBB0_15
## %bb.1:
	movl	4(%rdi), %ecx
	movq	_DRM_MODE_FLAG_ALL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	testl	%edx, %ecx
	jne	LBB0_15
## %bb.2:
	movq	_DRM_MODE_FLAG_3D_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movq	_DRM_MODE_FLAG_3D_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_15
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.5:
	movq	16(%rdi), %rcx
	movq	_MODE_H_ILLEGAL@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.6:
	movq	24(%rdi), %rdx
	cmpq	%rcx, %rdx
	jl	LBB0_15
## %bb.7:
	movq	32(%rdi), %rcx
	cmpq	%rdx, %rcx
	jl	LBB0_15
## %bb.8:
	cmpq	%rcx, 40(%rdi)
	jl	LBB0_15
## %bb.9:
	movq	48(%rdi), %rcx
	movq	_MODE_V_ILLEGAL@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.10:
	movq	56(%rdi), %rdx
	cmpq	%rcx, %rdx
	jl	LBB0_15
## %bb.11:
	movq	64(%rdi), %rcx
	cmpq	%rdx, %rcx
	jl	LBB0_15
## %bb.12:
	cmpq	%rcx, 72(%rdi)
	jge	LBB0_13
## %bb.14:
	movq	_MODE_V_ILLEGAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_MODE_CLOCK_LOW@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_13:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_TYPE_ALL,4,2          ## @DRM_MODE_TYPE_ALL
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.comm	_DRM_MODE_FLAG_ALL,4,2          ## @DRM_MODE_FLAG_ALL
	.comm	_DRM_MODE_FLAG_3D_MASK,4,2      ## @DRM_MODE_FLAG_3D_MASK
	.comm	_DRM_MODE_FLAG_3D_MAX,4,2       ## @DRM_MODE_FLAG_3D_MAX
	.comm	_MODE_CLOCK_LOW,4,2             ## @MODE_CLOCK_LOW
	.comm	_MODE_H_ILLEGAL,4,2             ## @MODE_H_ILLEGAL
	.comm	_MODE_V_ILLEGAL,4,2             ## @MODE_V_ILLEGAL
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_drm_mode_validate_basic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_mode_validate_basic
_drm_mode_validate_basic:               ; @drm_mode_validate_basic
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DRM_MODE_TYPE_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_TYPE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _DRM_MODE_FLAG_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_FLAG_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _DRM_MODE_FLAG_3D_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_FLAG_3D_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _DRM_MODE_FLAG_3D_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_MODE_FLAG_3D_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _MODE_BAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_BAD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_9
; %bb.6:
	ldr	x8, [x0, #24]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.7:
	ldr	x9, [x0, #32]
	cmp	x9, x8
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x0, #40]
	cmp	x8, x9
	b.ge	LBB0_11
LBB0_9:
Lloh15:
	adrp	x8, _MODE_H_ILLEGAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MODE_H_ILLEGAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_10:
Lloh18:
	adrp	x8, _MODE_CLOCK_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MODE_CLOCK_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
LBB0_11:
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x10, [x0, #56]
	cmp	x10, x8
	b.ge	LBB0_14
LBB0_13:
Lloh21:
	adrp	x8, _MODE_V_ILLEGAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MODE_V_ILLEGAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ret
LBB0_14:
	ldr	x9, [x0, #64]
Lloh24:
	adrp	x8, _MODE_V_ILLEGAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MODE_V_ILLEGAL@GOTPAGEOFF]
	cmp	x9, x10
	b.lt	LBB0_16
; %bb.15:
	ldr	x10, [x0, #72]
Lloh26:
	adrp	x11, _MODE_OK@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MODE_OK@GOTPAGEOFF]
	cmp	x10, x9
	csel	x8, x8, x11, lt
LBB0_16:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_TYPE_ALL,4,2          ; @DRM_MODE_TYPE_ALL
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.comm	_DRM_MODE_FLAG_ALL,4,2          ; @DRM_MODE_FLAG_ALL
	.comm	_DRM_MODE_FLAG_3D_MASK,4,2      ; @DRM_MODE_FLAG_3D_MASK
	.comm	_DRM_MODE_FLAG_3D_MAX,4,2       ; @DRM_MODE_FLAG_3D_MAX
	.comm	_MODE_CLOCK_LOW,4,2             ; @MODE_CLOCK_LOW
	.comm	_MODE_H_ILLEGAL,4,2             ; @MODE_H_ILLEGAL
	.comm	_MODE_V_ILLEGAL,4,2             ; @MODE_V_ILLEGAL
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_drm_mode_validate_basic
.subsections_via_symbols
