	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_ar_scheme
_build_ar_scheme:                       ## @build_ar_scheme
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_FM_KG_KGAR_READ@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_FM_KG_KGAR_WRITE@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	_FM_KG_KGAR_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FM_KG_KGAR_SEL_SCHEME_ENTRY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DUMMY_PORT_ID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FM_KG_KGAR_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	_FM_KG_KGAR_SCM_WSEL_UPDATE_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_5:
	orl	%esi, %edi
	orl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_KG_KGAR_WRITE,8,3           ## @FM_KG_KGAR_WRITE
	.comm	_FM_KG_KGAR_READ,8,3            ## @FM_KG_KGAR_READ
	.comm	_FM_KG_KGAR_GO,4,2              ## @FM_KG_KGAR_GO
	.comm	_FM_KG_KGAR_SEL_SCHEME_ENTRY,4,2 ## @FM_KG_KGAR_SEL_SCHEME_ENTRY
	.comm	_DUMMY_PORT_ID,4,2              ## @DUMMY_PORT_ID
	.comm	_FM_KG_KGAR_NUM_SHIFT,4,2       ## @FM_KG_KGAR_NUM_SHIFT
	.comm	_FM_KG_KGAR_SCM_WSEL_UPDATE_CNT,4,2 ## @FM_KG_KGAR_SCM_WSEL_UPDATE_CNT
	.no_dead_strip	_build_ar_scheme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_ar_scheme
_build_ar_scheme:                       ; @build_ar_scheme
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FM_KG_KGAR_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_KG_KGAR_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FM_KG_KGAR_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FM_KG_KGAR_READ@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _FM_KG_KGAR_GO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FM_KG_KGAR_GO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _FM_KG_KGAR_SEL_SCHEME_ENTRY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FM_KG_KGAR_SEL_SCHEME_ENTRY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh10:
	adrp	x9, _DUMMY_PORT_ID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DUMMY_PORT_ID@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _FM_KG_KGAR_NUM_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FM_KG_KGAR_NUM_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	lsl	w9, w0, w9
Lloh16:
	adrp	x10, _FM_KG_KGAR_SCM_WSEL_UPDATE_CNT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FM_KG_KGAR_SCM_WSEL_UPDATE_CNT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh18:
	ldr	w9, [x10]
	cmp	w1, #0
	csel	w9, wzr, w9, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_KG_KGAR_WRITE,8,3           ; @FM_KG_KGAR_WRITE
	.comm	_FM_KG_KGAR_READ,8,3            ; @FM_KG_KGAR_READ
	.comm	_FM_KG_KGAR_GO,4,2              ; @FM_KG_KGAR_GO
	.comm	_FM_KG_KGAR_SEL_SCHEME_ENTRY,4,2 ; @FM_KG_KGAR_SEL_SCHEME_ENTRY
	.comm	_DUMMY_PORT_ID,4,2              ; @DUMMY_PORT_ID
	.comm	_FM_KG_KGAR_NUM_SHIFT,4,2       ; @FM_KG_KGAR_NUM_SHIFT
	.comm	_FM_KG_KGAR_SCM_WSEL_UPDATE_CNT,4,2 ; @FM_KG_KGAR_SCM_WSEL_UPDATE_CNT
	.no_dead_strip	_build_ar_scheme
.subsections_via_symbols
