	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fflp_set_partition
_fflp_set_partition:                    ## @fflp_set_partition
	.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
	movq	%rcx, %rax
	orq	%rdx, %rax
	cmpq	$31, %rax
	ja	LBB0_2
## %bb.1:
	movq	_FCRAM_NUM_PARTITIONS@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jle	LBB0_2
## %bb.3:
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rdi
	callq	_FLW_PRT_SEL
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_nr64
	movq	_FLW_PRT_SEL_EXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_FLW_PRT_SEL_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	orq	%rdx, %rdi
	movq	_FLW_PRT_SEL_BASE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdi
	movq	_FLW_PRT_SEL_MASK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %r13
	notq	%rdi
	andq	%rax, %rdi
	movq	_FLW_PRT_SEL_BASE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r14
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	movl	$0, %esi
	cmovneq	%rdx, %rsi
	orq	%r13, %rsi
	orq	%rdi, %rsi
	orq	%r14, %rsi
	movq	%r12, %rdi
	callq	_nw64
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FCRAM_NUM_PARTITIONS,8,3       ## @FCRAM_NUM_PARTITIONS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FLW_PRT_SEL_EXT,8,3            ## @FLW_PRT_SEL_EXT
	.comm	_FLW_PRT_SEL_MASK,8,3           ## @FLW_PRT_SEL_MASK
	.comm	_FLW_PRT_SEL_BASE,8,3           ## @FLW_PRT_SEL_BASE
	.comm	_FLW_PRT_SEL_MASK_SHIFT,8,3     ## @FLW_PRT_SEL_MASK_SHIFT
	.comm	_FLW_PRT_SEL_BASE_SHIFT,8,3     ## @FLW_PRT_SEL_BASE_SHIFT
	.no_dead_strip	_fflp_set_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fflp_set_partition
_fflp_set_partition:                    ; @fflp_set_partition
	.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
Lloh0:
	adrp	x8, _FCRAM_NUM_PARTITIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FCRAM_NUM_PARTITIONS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	orr	x9, x3, x2
	cmp	x9, #31
	ccmp	x8, x1, #4, ls
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x0, x1
	bl	_FLW_PRT_SEL
	mov	x22, x0
	bl	_nr64
Lloh6:
	adrp	x8, _FLW_PRT_SEL_EXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLW_PRT_SEL_EXT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _FLW_PRT_SEL_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLW_PRT_SEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x9, x9, x8
Lloh12:
	adrp	x10, _FLW_PRT_SEL_BASE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FLW_PRT_SEL_BASE@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh15:
	adrp	x10, _FLW_PRT_SEL_MASK_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FLW_PRT_SEL_MASK_SHIFT@GOTPAGEOFF]
	bic	x9, x0, x9
Lloh17:
	ldr	x10, [x10]
	lsl	x10, x21, x10
Lloh18:
	adrp	x11, _FLW_PRT_SEL_BASE_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FLW_PRT_SEL_BASE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	lsl	x11, x20, x11
	cmp	w19, #0
	csel	x8, xzr, x8, eq
	orr	x8, x10, x8
	orr	x8, x8, x9
	orr	x1, x8, x11
	mov	x0, x22
	bl	_nw64
	mov	w0, #0
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FCRAM_NUM_PARTITIONS,8,3       ; @FCRAM_NUM_PARTITIONS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FLW_PRT_SEL_EXT,8,3            ; @FLW_PRT_SEL_EXT
	.comm	_FLW_PRT_SEL_MASK,8,3           ; @FLW_PRT_SEL_MASK
	.comm	_FLW_PRT_SEL_BASE,8,3           ; @FLW_PRT_SEL_BASE
	.comm	_FLW_PRT_SEL_MASK_SHIFT,8,3     ; @FLW_PRT_SEL_MASK_SHIFT
	.comm	_FLW_PRT_SEL_BASE_SHIFT,8,3     ; @FLW_PRT_SEL_BASE_SHIFT
	.no_dead_strip	_fflp_set_partition
.subsections_via_symbols
