	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdfld_dsi_connector_mode_valid
_mdfld_dsi_connector_mode_valid:        ## @mdfld_dsi_connector_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	_mdfld_dsi_connector
	movq	%rax, %rdi
	callq	_mdfld_dsi_get_config
	movl	(%rbx), %ecx
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_MODE_NO_DBLESCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_MODE_NO_INTERLACE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	8(%rbx), %rdx
	movq	_MODE_PANEL@GOTPCREL(%rip), %rax
	cmpq	8(%rcx), %rdx
	jne	LBB0_8
## %bb.6:
	movq	16(%rbx), %rdx
	cmpq	16(%rcx), %rdx
	jne	LBB0_8
LBB0_7:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ## @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ## @MODE_NO_INTERLACE
	.comm	_MODE_PANEL,4,2                 ## @MODE_PANEL
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_mdfld_dsi_connector_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdfld_dsi_connector_mode_valid
_mdfld_dsi_connector_mode_valid:        ; @mdfld_dsi_connector_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	_mdfld_dsi_connector
	bl	_mdfld_dsi_get_config
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MODE_NO_DBLESCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_NO_DBLESCAN@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh5:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _MODE_NO_INTERLACE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MODE_NO_INTERLACE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x19, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x19, #16]
	ldr	x8, [x8, #16]
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _MODE_PANEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_PANEL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ; @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ; @MODE_NO_INTERLACE
	.comm	_MODE_PANEL,4,2                 ; @MODE_PANEL
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_mdfld_dsi_connector_mode_valid
.subsections_via_symbols
