	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_drm_crtc_mode_valid
_armada_drm_crtc_mode_valid:            ## @armada_drm_crtc_mode_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_drm_to_armada_crtc
	cmpl	$1, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	_MODE_NO_VSCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movl	4(%rbx), %ecx
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_MODE_NO_DBLESCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_DRM_MODE_FLAG_HSKEW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_MODE_H_ILLEGAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
LBB0_9:
	movq	_DRM_MODE_FLAG_BCAST@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_FLAG_PIXMUX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_DRM_MODE_FLAG_CLKDIV2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	testl	%ecx, %edx
	jne	LBB0_10
## %bb.11:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_MODE_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_MODE_NO_INTERLACE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_NO_VSCAN,4,2              ## @MODE_NO_VSCAN
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ## @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_HSKEW,4,2        ## @DRM_MODE_FLAG_HSKEW
	.comm	_MODE_H_ILLEGAL,4,2             ## @MODE_H_ILLEGAL
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ## @MODE_NO_INTERLACE
	.comm	_DRM_MODE_FLAG_BCAST,4,2        ## @DRM_MODE_FLAG_BCAST
	.comm	_DRM_MODE_FLAG_PIXMUX,4,2       ## @DRM_MODE_FLAG_PIXMUX
	.comm	_DRM_MODE_FLAG_CLKDIV2,4,2      ## @DRM_MODE_FLAG_CLKDIV2
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_armada_drm_crtc_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_drm_crtc_mode_valid
_armada_drm_crtc_mode_valid:            ; @armada_drm_crtc_mode_valid
	.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
	mov	x19, x1
	bl	_drm_to_armada_crtc
	ldr	w8, [x19]
	cmp	w8, #1
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MODE_NO_VSCAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_NO_VSCAN@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _MODE_NO_DBLESCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_NO_DBLESCAN@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x9, _DRM_MODE_FLAG_HSKEW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DRM_MODE_FLAG_HSKEW@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _MODE_H_ILLEGAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MODE_H_ILLEGAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x9, [x0]
	ldr	w9, [x9]
	cbz	w9, LBB0_8
LBB0_7:
Lloh12:
	adrp	x9, _DRM_MODE_FLAG_BCAST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DRM_MODE_FLAG_BCAST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _DRM_MODE_FLAG_PIXMUX@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DRM_MODE_FLAG_PIXMUX@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _DRM_MODE_FLAG_CLKDIV2@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DRM_MODE_FLAG_CLKDIV2@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh21:
	adrp	x10, _MODE_BAD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MODE_BAD@GOTPAGEOFF]
Lloh23:
	adrp	x11, _MODE_OK@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MODE_OK@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_10
LBB0_8:
Lloh25:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.9:
Lloh28:
	adrp	x8, _MODE_NO_INTERLACE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MODE_NO_INTERLACE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_NO_VSCAN,4,2              ; @MODE_NO_VSCAN
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ; @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_HSKEW,4,2        ; @DRM_MODE_FLAG_HSKEW
	.comm	_MODE_H_ILLEGAL,4,2             ; @MODE_H_ILLEGAL
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ; @MODE_NO_INTERLACE
	.comm	_DRM_MODE_FLAG_BCAST,4,2        ; @DRM_MODE_FLAG_BCAST
	.comm	_DRM_MODE_FLAG_PIXMUX,4,2       ; @DRM_MODE_FLAG_PIXMUX
	.comm	_DRM_MODE_FLAG_CLKDIV2,4,2      ; @DRM_MODE_FLAG_CLKDIV2
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_armada_drm_crtc_mode_valid
.subsections_via_symbols
