	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_threshold
_set_threshold:                         ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_cy_is_Z
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CyREC_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	notq	%rcx
	andq	(%rbx), %rcx
	movq	%rcx, (%rbx)
	andq	(%rax), %r15
	orq	%rcx, %r15
	movq	%r15, (%rbx)
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_CyCOR3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_cyy_writeb
	movq	_CyCOR_CHANGE@GOTPCREL(%rip), %rax
	movq	_CyCOR3ch@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cyy_issue_cmd
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CyREC_FIFO,8,3                 ## @CyREC_FIFO
	.comm	_CyCOR3,4,2                     ## @CyCOR3
	.comm	_CyCOR_CHANGE,4,2               ## @CyCOR_CHANGE
	.comm	_CyCOR3ch,4,2                   ## @CyCOR3ch
	.no_dead_strip	_set_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_threshold
_set_threshold:                         ; @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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_cy_is_Z
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CyREC_FIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CyREC_FIFO@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x20]
	bic	x9, x10, x9
	str	x9, [x20]
	ldr	x8, [x8]
	and	x8, x8, x21
	orr	x8, x8, x9
	str	x8, [x20]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _CyCOR3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CyCOR3@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x20
	bl	_cyy_writeb
Lloh5:
	adrp	x8, _CyCOR_CHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CyCOR_CHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CyCOR3ch@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CyCOR3ch@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_cyy_issue_cmd
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_2:
	mov	w0, #0
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CyREC_FIFO,8,3                 ; @CyREC_FIFO
	.comm	_CyCOR3,4,2                     ; @CyCOR3
	.comm	_CyCOR_CHANGE,4,2               ; @CyCOR_CHANGE
	.comm	_CyCOR3ch,4,2                   ; @CyCOR3ch
	.no_dead_strip	_set_threshold
.subsections_via_symbols
