	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_lm_setup_border_color
_dpu_hw_lm_setup_border_color:          ## @dpu_hw_lm_setup_border_color
	.cfi_startproc
## %bb.0:
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_LM_BORDER_COLOR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4095, %r15d                    ## imm = 0xFFF
	movl	(%rbx), %eax
	andl	%r15d, %eax
	movl	4(%rbx), %edx
	shll	$16, %edx
	andl	$268369920, %edx                ## imm = 0xFFF0000
	orl	%eax, %edx
	callq	_DPU_REG_WRITE
	movq	_LM_BORDER_COLOR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	8(%rbx), %r15d
	movl	12(%rbx), %edx
	shll	$16, %edx
	andl	$268369920, %edx                ## imm = 0xFFF0000
	orl	%r15d, %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_REG_WRITE                  ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM_BORDER_COLOR_0,4,2          ## @LM_BORDER_COLOR_0
	.comm	_LM_BORDER_COLOR_1,4,2          ## @LM_BORDER_COLOR_1
	.no_dead_strip	_dpu_hw_lm_setup_border_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_lm_setup_border_color
_dpu_hw_lm_setup_border_color:          ; @dpu_hw_lm_setup_border_color
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_2
; %bb.1:
	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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LM_BORDER_COLOR_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM_BORDER_COLOR_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w8, w9, [x20]
	and	w2, w8, #0xfff
	bfi	w2, w9, #16, #12
	bl	_DPU_REG_WRITE
Lloh3:
	adrp	x8, _LM_BORDER_COLOR_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM_BORDER_COLOR_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w8, w9, [x20, #8]
	and	w2, w8, #0xfff
	bfi	w2, w9, #16, #12
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPU_REG_WRITE
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LM_BORDER_COLOR_0,4,2          ; @LM_BORDER_COLOR_0
	.comm	_LM_BORDER_COLOR_1,4,2          ; @LM_BORDER_COLOR_1
	.no_dead_strip	_dpu_hw_lm_setup_border_color
.subsections_via_symbols
