	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetMisc                     ## -- Begin function GX_SetMisc
	.p2align	4, 0x90
_GX_SetMisc:                            ## @GX_SetMisc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_GX_MT_XF_FLUSH@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	___gx@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rsi, 16(%rax)
	movq	%rsi, %rdi
	callq	_cntlzw
	movq	%rax, %rdi
	movl	$5, %esi
	movl	$16, %edx
	callq	__SHIFTR
	movq	(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movl	$1, (%rcx)
	cmpq	$0, 16(%rcx)
	je	LBB0_5
## %bb.2:
	orb	$8, 4(%rcx)
	jmp	LBB0_5
LBB0_3:
	movq	_GX_MT_DL_SAVE_CTX@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_5
## %bb.4:
	movzbl	%sil, %eax
	movq	___gx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_MT_XF_FLUSH,8,3             ## @GX_MT_XF_FLUSH
	.comm	___gx,8,3                       ## @__gx
	.comm	_GX_MT_DL_SAVE_CTX,8,3          ## @GX_MT_DL_SAVE_CTX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetMisc                     ; -- Begin function GX_SetMisc
	.p2align	2
_GX_SetMisc:                            ; @GX_SetMisc
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x8, _GX_MT_XF_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_MT_XF_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, ___gx@GOTPAGE
Lloh4:
	ldr	x19, [x19, ___gx@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x1, [x8, #16]
	mov	x0, x1
	bl	_cntlzw
	mov	w1, #5
	mov	w2, #16
	bl	__SHIFTR
	ldr	x8, [x19]
	str	w0, [x8, #24]
	mov	w9, #1
	str	w9, [x8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_5
; %bb.2:
	ldr	w9, [x8, #4]
	orr	w9, w9, #0x8
	str	w9, [x8, #4]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _GX_MT_DL_SAVE_CTX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GX_MT_DL_SAVE_CTX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_5
; %bb.4:
	and	x8, x1, #0xff
Lloh8:
	adrp	x9, ___gx@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___gx@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x8, [x9, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_MT_XF_FLUSH,8,3             ; @GX_MT_XF_FLUSH
	.comm	___gx,8,3                       ; @__gx
	.comm	_GX_MT_DL_SAVE_CTX,8,3          ; @GX_MT_DL_SAVE_CTX
.subsections_via_symbols
