	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixer_mode_valid
_mixer_mode_valid:                      ## @mixer_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movl	(%rsi), %r15d
	movl	4(%rsi), %r14d
	movl	8(%rbx), %edi
	movl	12(%rsi), %r8d
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r9d, %r9d
	andl	8(%rsi), %eax
	setne	%r9b
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_DRM_DEV_DEBUG_KMS
	movq	(%rbx), %rcx
	movq	_MXR_VER_128_0_0_184@GOTPCREL(%rip), %rdx
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.1:
	leal	-464(%r15), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	ja	LBB0_3
## %bb.2:
	leal	-261(%r14), %ecx
	cmpl	$316, %ecx                      ## imm = 0x13C
	jb	LBB0_12
LBB0_3:
	leal	-1024(%r15), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	ja	LBB0_5
## %bb.4:
	leal	-576(%r14), %ecx
	cmpl	$145, %ecx
	jb	LBB0_12
LBB0_5:
	leal	-1664(%r15), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	ja	LBB0_7
## %bb.6:
	leal	-936(%r14), %ecx
	cmpl	$145, %ecx
	jb	LBB0_12
LBB0_7:
	cmpl	$1024, %r15d                    ## imm = 0x400
	setne	%cl
	cmpl	$1366, %r15d                    ## imm = 0x556
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_9
## %bb.8:
	cmpl	$768, %r14d                     ## imm = 0x300
	je	LBB0_12
LBB0_9:
	xorl	$1280, %r15d                    ## imm = 0x500
	xorl	$1024, %r14d                    ## imm = 0x400
	orl	%r15d, %r14d
	jne	LBB0_10
## %bb.11:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_MODE_BAD@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xres=%d, yres=%d, refresh=%d, intl=%d\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_MXR_VER_128_0_0_184,8,3        ## @MXR_VER_128_0_0_184
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.no_dead_strip	_mixer_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mixer_mode_valid
_mixer_mode_valid:                      ; @mixer_mode_valid
	.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
	ldr	x21, [x0]
	ldp	w19, w20, [x1]
	ldr	w0, [x21, #8]
	ldp	w8, w4, [x1, #8]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w5, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_DRM_DEV_DEBUG_KMS
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _MXR_VER_128_0_0_184@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MXR_VER_128_0_0_184@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	sub	w8, w19, #464
	cmp	w8, #256
	b.hi	LBB0_3
; %bb.2:
	sub	w8, w20, #261
	cmp	w8, #316
	b.lo	LBB0_7
LBB0_3:
	sub	w8, w19, #1024
	cmp	w8, #256
	b.hi	LBB0_5
; %bb.4:
	sub	w8, w20, #576
	cmp	w8, #145
	b.lo	LBB0_7
LBB0_5:
	sub	w8, w19, #1664
	cmp	w8, #256
	b.hi	LBB0_9
; %bb.6:
	sub	w8, w20, #936
	cmp	w8, #145
	b.hs	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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_9:
	cmp	w19, #1366
	mov	w8, #1024
	ccmp	w19, w8, #4, ne
Lloh10:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
	b.ne	LBB0_11
; %bb.10:
	cmp	w20, #768
	b.eq	LBB0_8
LBB0_11:
	cmp	w20, #1024
	mov	w9, #1280
	ccmp	w19, w9, #0, eq
Lloh12:
	adrp	x9, _MODE_BAD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MODE_BAD@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xres=%d, yres=%d, refresh=%d, intl=%d\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_MXR_VER_128_0_0_184,8,3        ; @MXR_VER_128_0_0_184
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.no_dead_strip	_mixer_mode_valid
.subsections_via_symbols
