	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3560_flash_brt_ctrl
_lm3560_flash_brt_ctrl:                 ## @lm3560_flash_brt_ctrl
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_LM3560_FLASH_BRT_MIN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jbe	LBB0_1
## %bb.5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lm3560_enable_ctrl             ## TAILCALL
LBB0_1:
	movl	%edx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_lm3560_enable_ctrl
	movl	%ebx, %edi
	callq	_LM3560_FLASH_BRT_uA_TO_REG
	movq	_LM3560_LED0@GOTPCREL(%rip), %rcx
	movl	(%r15), %edi
	movq	_REG_FLASH_BR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.2:
	movl	$15, %edx
	jmp	LBB0_3
LBB0_4:
	shll	$4, %eax
	movl	$240, %edx
LBB0_3:
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3560_FLASH_BRT_MIN,4,2       ## @LM3560_FLASH_BRT_MIN
	.comm	_LM3560_LED0,4,2                ## @LM3560_LED0
	.comm	_REG_FLASH_BR,4,2               ## @REG_FLASH_BR
	.no_dead_strip	_lm3560_flash_brt_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3560_flash_brt_ctrl
_lm3560_flash_brt_ctrl:                 ; @lm3560_flash_brt_ctrl
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LM3560_FLASH_BRT_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3560_FLASH_BRT_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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
	b	_lm3560_enable_ctrl
LBB0_2:
	mov	x21, x2
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_lm3560_enable_ctrl
	mov	x0, x21
	bl	_LM3560_FLASH_BRT_uA_TO_REG
	mov	x3, x0
Lloh3:
	adrp	x8, _LM3560_LED0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM3560_LED0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w0, [x20]
Lloh6:
	adrp	x9, _REG_FLASH_BR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG_FLASH_BR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	mov	w2, #15
	b	LBB0_5
LBB0_4:
	lsl	w3, w3, #4
	mov	w2, #240
LBB0_5:
	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
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3560_FLASH_BRT_MIN,4,2       ; @LM3560_FLASH_BRT_MIN
	.comm	_LM3560_LED0,4,2                ; @LM3560_LED0
	.comm	_REG_FLASH_BR,4,2               ; @REG_FLASH_BR
	.no_dead_strip	_lm3560_flash_brt_ctrl
.subsections_via_symbols
