	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_init_ctxt                 ## -- Begin function hfi1_init_ctxt
	.p2align	4, 0x90
_hfi1_init_ctxt:                        ## @hfi1_init_ctxt
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r14
	movq	_SC_USER@GOTPCREL(%rip), %rcx
	movq	_STATIC_RATE_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	callq	_HFI1_CAP_IS_USET
	jmp	LBB0_4
LBB0_8:
	retq
LBB0_3:
	callq	_HFI1_CAP_IS_KSET
LBB0_4:
	movq	%rax, %r12
	movl	8(%rbx), %esi
	movq	_SEND_CTXT_CHECK_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_read_kctxt_csr
	movl	%eax, %r15d
	movl	%eax, %edi
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	callq	_CLEAR_STATIC_RATE_CONTROL_SMASK
	jmp	LBB0_7
LBB0_6:
	callq	_SET_STATIC_RATE_CONTROL_SMASK
LBB0_7:
	movl	8(%rbx), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_kctxt_csr                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_USER,8,3                    ## @SC_USER
	.comm	_STATIC_RATE_CTRL,4,2           ## @STATIC_RATE_CTRL
	.comm	_SEND_CTXT_CHECK_ENABLE,4,2     ## @SEND_CTXT_CHECK_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_init_ctxt                 ; -- Begin function hfi1_init_ctxt
	.p2align	2
_hfi1_init_ctxt:                        ; @hfi1_init_ctxt
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_remember_state
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _SC_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC_USER@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _STATIC_RATE_CTRL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STATIC_RATE_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x10]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	bl	_HFI1_CAP_IS_USET
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
LBB0_4:
	.cfi_restore_state
	bl	_HFI1_CAP_IS_KSET
LBB0_5:
	mov	x22, x0
	ldr	w1, [x19, #8]
Lloh6:
	adrp	x23, _SEND_CTXT_CHECK_ENABLE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SEND_CTXT_CHECK_ENABLE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_read_kctxt_csr
	mov	x21, x0
	cbz	x22, LBB0_7
; %bb.6:
	bl	_CLEAR_STATIC_RATE_CONTROL_SMASK
	b	LBB0_8
LBB0_7:
	bl	_SET_STATIC_RATE_CONTROL_SMASK
LBB0_8:
	ldr	w1, [x19, #8]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_write_kctxt_csr
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_USER,8,3                    ; @SC_USER
	.comm	_STATIC_RATE_CTRL,4,2           ; @STATIC_RATE_CTRL
	.comm	_SEND_CTXT_CHECK_ENABLE,4,2     ; @SEND_CTXT_CHECK_ENABLE
.subsections_via_symbols
