	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxbf_tmfifo_set_threshold
_mlxbf_tmfifo_set_threshold:            ## @mlxbf_tmfifo_set_threshold
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MLXBF_TMFIFO_TX_CTL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	24(%r14), %rdi
	callq	_readq
	movl	%eax, %ebx
	movq	_MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, (%r14)
	movq	_MLXBF_TMFIFO_TX_CTL__LWM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %r12d
	notl	%r12d
	andl	%ebx, %r12d
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	callq	_FIELD_PREP
	orl	%eax, %r12d
	movq	_MLXBF_TMFIFO_TX_CTL__HWM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	(%r14), %esi
	decl	%esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	24(%r14), %rsi
	movl	%ebx, %edi
	callq	_writeq
	movq	_MLXBF_TMFIFO_RX_CTL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readq
	movl	%eax, %ebx
	movq	_MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movq	%rax, 16(%r14)
	movq	_MLXBF_TMFIFO_RX_CTL__LWM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %r12d
	notl	%r12d
	andl	%ebx, %r12d
	xorl	%esi, %esi
	callq	_FIELD_PREP
	orl	%eax, %r12d
	movq	_MLXBF_TMFIFO_RX_CTL__HWM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	$1, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writeq                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXBF_TMFIFO_TX_CTL,8,3        ## @MLXBF_TMFIFO_TX_CTL
	.comm	_MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK,4,2 ## @MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK
	.comm	_MLXBF_TMFIFO_TX_CTL__LWM_MASK,4,2 ## @MLXBF_TMFIFO_TX_CTL__LWM_MASK
	.comm	_MLXBF_TMFIFO_TX_CTL__HWM_MASK,4,2 ## @MLXBF_TMFIFO_TX_CTL__HWM_MASK
	.comm	_MLXBF_TMFIFO_RX_CTL,8,3        ## @MLXBF_TMFIFO_RX_CTL
	.comm	_MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK,4,2 ## @MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK
	.comm	_MLXBF_TMFIFO_RX_CTL__LWM_MASK,4,2 ## @MLXBF_TMFIFO_RX_CTL__LWM_MASK
	.comm	_MLXBF_TMFIFO_RX_CTL__HWM_MASK,4,2 ## @MLXBF_TMFIFO_RX_CTL__HWM_MASK
	.no_dead_strip	_mlxbf_tmfifo_set_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxbf_tmfifo_set_threshold
_mlxbf_tmfifo_set_threshold:            ; @mlxbf_tmfifo_set_threshold
	.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, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x21, _MLXBF_TMFIFO_TX_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLXBF_TMFIFO_TX_CTL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readq
	mov	x20, x0
Lloh2:
	adrp	x8, _MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
Lloh5:
	adrp	x8, _MLXBF_TMFIFO_TX_CTL__LWM_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLXBF_TMFIFO_TX_CTL__LWM_MASK@GOTPAGEOFF]
	str	w0, [x19]
Lloh7:
	ldr	w8, [x8]
	bic	w20, w20, w8
	cmp	w0, #0
	cinc	w9, w0, lt
	asr	w1, w9, #1
	mov	x0, x8
	bl	_FIELD_PREP
	orr	w8, w20, w0
Lloh8:
	adrp	x9, _MLXBF_TMFIFO_TX_CTL__HWM_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLXBF_TMFIFO_TX_CTL__HWM_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	bic	w20, w8, w0
	ldr	w8, [x19]
	sub	w1, w8, #1
	bl	_FIELD_PREP
	orr	w0, w0, w20
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writeq
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x21, _MLXBF_TMFIFO_RX_CTL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MLXBF_TMFIFO_RX_CTL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readq
	mov	x20, x0
Lloh13:
	adrp	x8, _MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	str	x0, [x19, #16]
Lloh16:
	adrp	x8, _MLXBF_TMFIFO_RX_CTL__LWM_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLXBF_TMFIFO_RX_CTL__LWM_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bic	w20, w20, w0
	mov	w1, #0
	bl	_FIELD_PREP
	orr	w8, w20, w0
Lloh19:
	adrp	x9, _MLXBF_TMFIFO_RX_CTL__HWM_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MLXBF_TMFIFO_RX_CTL__HWM_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	bic	w20, w8, w0
	mov	w1, #1
	bl	_FIELD_PREP
	orr	w0, w20, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	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	_writeq
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXBF_TMFIFO_TX_CTL,8,3        ; @MLXBF_TMFIFO_TX_CTL
	.comm	_MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK,4,2 ; @MLXBF_TMFIFO_TX_CTL__MAX_ENTRIES_MASK
	.comm	_MLXBF_TMFIFO_TX_CTL__LWM_MASK,4,2 ; @MLXBF_TMFIFO_TX_CTL__LWM_MASK
	.comm	_MLXBF_TMFIFO_TX_CTL__HWM_MASK,4,2 ; @MLXBF_TMFIFO_TX_CTL__HWM_MASK
	.comm	_MLXBF_TMFIFO_RX_CTL,8,3        ; @MLXBF_TMFIFO_RX_CTL
	.comm	_MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK,4,2 ; @MLXBF_TMFIFO_RX_CTL__MAX_ENTRIES_MASK
	.comm	_MLXBF_TMFIFO_RX_CTL__LWM_MASK,4,2 ; @MLXBF_TMFIFO_RX_CTL__LWM_MASK
	.comm	_MLXBF_TMFIFO_RX_CTL__HWM_MASK,4,2 ; @MLXBF_TMFIFO_RX_CTL__HWM_MASK
	.no_dead_strip	_mlxbf_tmfifo_set_threshold
.subsections_via_symbols
