	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scc_setsignals
_scc_setsignals:                        ## @scc_setsignals
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_SCC_ACCESS_INIT
	callq	_local_irq_save
	movq	_TX_CTRL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SCCread
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.1:
	movq	_TCR_DTR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	je	LBB0_3
## %bb.2:
	orb	%cl, %al
LBB0_4:
	testl	%r14d, %r14d
	js	LBB0_8
LBB0_5:
	movq	_TCR_RTS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	je	LBB0_7
## %bb.6:
	orb	%cl, %al
	jmp	LBB0_8
LBB0_3:
	notb	%cl
	andb	%cl, %al
	testl	%r14d, %r14d
	jns	LBB0_5
	jmp	LBB0_8
LBB0_7:
	notb	%cl
	andb	%cl, %al
LBB0_8:
	movl	(%r15), %edi
	movzbl	%al, %esi
	callq	_SCCwrite
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_CTRL_REG,4,2                ## @TX_CTRL_REG
	.comm	_TCR_DTR,1,0                    ## @TCR_DTR
	.comm	_TCR_RTS,1,0                    ## @TCR_RTS
	.no_dead_strip	_scc_setsignals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scc_setsignals
_scc_setsignals:                        ; @scc_setsignals
	.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, x2
	mov	x20, x1
	bl	_SCC_ACCESS_INIT
	bl	_local_irq_save
Lloh0:
	adrp	x21, _TX_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TX_CTRL_REG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_SCCread
	mov	x1, x0
	tbnz	w20, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _TCR_DTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TCR_DTR@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w9, w1, w8
	orr	w8, w8, w1
	cmp	w20, #0
	csel	w1, w9, w8, eq
LBB0_2:
	tbnz	w19, #31, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _TCR_RTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCR_RTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w9, w1, w8
	orr	w8, w8, w1
	cmp	w19, #0
	csel	w1, w9, w8, eq
LBB0_4:
	ldr	w0, [x21]
	bl	_SCCwrite
	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	_local_irq_restore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_CTRL_REG,4,2                ; @TX_CTRL_REG
	.comm	_TCR_DTR,1,0                    ; @TCR_DTR
	.comm	_TCR_RTS,1,0                    ; @TCR_RTS
	.no_dead_strip	_scc_setsignals
.subsections_via_symbols
