	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdfld_dsi_get_default_config
_mdfld_dsi_get_default_config:          ## @mdfld_dsi_get_default_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	$24, (%r15)
	movl	%edx, %esi
	callq	_mdfld_get_panel_type
	movq	_TC35876X@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	cmpq	(%r12), %rax
	sete	%cl
	leal	(%rcx,%rcx), %eax
	addl	$2, %eax
	movl	%eax, 4(%r15)
	movq	$0, 16(%r15)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mdfld_get_panel_type
	movq	_TMD_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mdfld_get_panel_type
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:
	movq	_MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_MDFLD_DSI_VIDEO_BURST_MODE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameters"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TC35876X,8,3                   ## @TC35876X
	.comm	_TMD_VID,8,3                    ## @TMD_VID
	.comm	_MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE,4,2 ## @MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE
	.comm	_MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS,4,2 ## @MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS
	.comm	_MDFLD_DSI_VIDEO_BURST_MODE,4,2 ## @MDFLD_DSI_VIDEO_BURST_MODE
	.no_dead_strip	_mdfld_dsi_get_default_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdfld_dsi_get_default_config
_mdfld_dsi_get_default_config:          ; @mdfld_dsi_get_default_config
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x2
	mov	x21, x0
	mov	w8, #24
	str	w8, [x19]
	mov	x1, x2
	bl	_mdfld_get_panel_type
Lloh0:
	adrp	x22, _TC35876X@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TC35876X@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	mov	w8, #2
	mov	w9, #4
	csel	w8, w9, w8, eq
	str	w8, [x19, #4]
	str	xzr, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_mdfld_get_panel_type
Lloh2:
	adrp	x8, _TMD_VID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TMD_VID@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
Lloh5:
	adrp	x8, _MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_mdfld_get_panel_type
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh12:
	adrp	x8, _MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh14:
	adrp	x8, _MDFLD_DSI_VIDEO_BURST_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDFLD_DSI_VIDEO_BURST_MODE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameters"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TC35876X,8,3                   ; @TC35876X
	.comm	_TMD_VID,8,3                    ; @TMD_VID
	.comm	_MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE,4,2 ; @MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_PULSE
	.comm	_MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS,4,2 ; @MDFLD_DSI_VIDEO_NON_BURST_MODE_SYNC_EVENTS
	.comm	_MDFLD_DSI_VIDEO_BURST_MODE,4,2 ; @MDFLD_DSI_VIDEO_BURST_MODE
	.no_dead_strip	_mdfld_dsi_get_default_config
.subsections_via_symbols
