	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_op_mode_config
_dsi_op_mode_config:                    ## @dsi_op_mode_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_REG_DSI_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_dsi_read
	movl	%eax, %r14d
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_DSI_CTRL_VID_MODE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_DSI_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movq	_DSI_CTRL_VID_MODE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DSI_CTRL_CMD_MODE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movq	_DSI_IRQ_MASK_CMD_MDP_DONE@GOTPCREL(%rip), %rax
	movq	_DSI_IRQ_MASK_VIDEO_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_dsi_intr_ctrl
	movl	%r14d, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_DSI_CTRL_CMD_MODE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DSI_IRQ_MASK_CMD_MDP_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_dsi_intr_ctrl
LBB0_5:
	orl	%r14d, %ebx
	movq	_DSI_CTRL_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_6:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsi_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DSI_CTRL,4,2               ## @REG_DSI_CTRL
	.comm	_DSI_CTRL_ENABLE,4,2            ## @DSI_CTRL_ENABLE
	.comm	_DSI_CTRL_VID_MODE_EN,4,2       ## @DSI_CTRL_VID_MODE_EN
	.comm	_DSI_CTRL_CMD_MODE_EN,4,2       ## @DSI_CTRL_CMD_MODE_EN
	.comm	_DSI_IRQ_MASK_CMD_MDP_DONE,4,2  ## @DSI_IRQ_MASK_CMD_MDP_DONE
	.comm	_DSI_IRQ_MASK_VIDEO_DONE,4,2    ## @DSI_IRQ_MASK_VIDEO_DONE
	.no_dead_strip	_dsi_op_mode_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_op_mode_config
_dsi_op_mode_config:                    ; @dsi_op_mode_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _REG_DSI_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_DSI_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_dsi_read
	mov	x20, x0
	cbz	w22, LBB0_3
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _DSI_CTRL_VID_MODE_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSI_CTRL_VID_MODE_EN@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _DSI_CTRL_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSI_CTRL_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DSI_CTRL_VID_MODE_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DSI_CTRL_VID_MODE_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _DSI_CTRL_CMD_MODE_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DSI_CTRL_CMD_MODE_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _DSI_IRQ_MASK_CMD_MDP_DONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DSI_IRQ_MASK_CMD_MDP_DONE@GOTPAGEOFF]
	bic	w20, w20, w8
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _DSI_IRQ_MASK_VIDEO_DONE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DSI_IRQ_MASK_VIDEO_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_dsi_intr_ctrl
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _DSI_CTRL_CMD_MODE_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DSI_CTRL_CMD_MODE_EN@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
Lloh23:
	adrp	x8, _DSI_IRQ_MASK_CMD_MDP_DONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DSI_IRQ_MASK_CMD_MDP_DONE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_dsi_intr_ctrl
LBB0_5:
	orr	w8, w21, w20
Lloh26:
	adrp	x9, _DSI_CTRL_ENABLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DSI_CTRL_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dsi_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DSI_CTRL,4,2               ; @REG_DSI_CTRL
	.comm	_DSI_CTRL_ENABLE,4,2            ; @DSI_CTRL_ENABLE
	.comm	_DSI_CTRL_VID_MODE_EN,4,2       ; @DSI_CTRL_VID_MODE_EN
	.comm	_DSI_CTRL_CMD_MODE_EN,4,2       ; @DSI_CTRL_CMD_MODE_EN
	.comm	_DSI_IRQ_MASK_CMD_MDP_DONE,4,2  ; @DSI_IRQ_MASK_CMD_MDP_DONE
	.comm	_DSI_IRQ_MASK_VIDEO_DONE,4,2    ; @DSI_IRQ_MASK_VIDEO_DONE
	.no_dead_strip	_dsi_op_mode_config
.subsections_via_symbols
