	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msc_set_vcr
_msc_set_vcr:                           ## @msc_set_vcr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	movq	_MGSL_INTERFACE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r8d, %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_BIT5@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_BIT7@GOTPCREL(%rip), %rdx
	movq	_BIT6@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	(%rdx), %cl
	movq	_BIT5@GOTPCREL(%rip), %rdx
	addb	(%rdx), %cl
	jmp	LBB0_8
LBB0_6:
	movq	_BIT6@GOTPCREL(%rip), %rcx
LBB0_7:
	movb	(%rcx), %cl
	jmp	LBB0_8
LBB0_3:
	xorl	%ecx, %ecx
LBB0_8:
	movq	_MGSL_INTERFACE_MSB_FIRST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r8d, %edx
	movq	_BIT4@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %esi
	cmovel	%edx, %esi
	orb	%cl, %sil
	movl	4(%rdi), %ecx
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	movq	_BIT3@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%edx, %eax
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movq	_BIT2@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovel	%ecx, %edx
	orb	%al, %dl
	orb	%sil, %dl
	movq	_MGSL_INTERFACE_LL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	movq	_BIT1@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%eax, %ecx
	movq	_MGSL_INTERFACE_RL@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	movq	_BIT0@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovel	%r8d, %eax
	orb	%cl, %al
	orb	%dl, %al
	movq	_VCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	popq	%rbp
	jmp	_wr_reg8                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MGSL_INTERFACE_MASK,4,2        ## @MGSL_INTERFACE_MASK
	.comm	_BIT5,1,0                       ## @BIT5
	.comm	_BIT7,1,0                       ## @BIT7
	.comm	_BIT6,1,0                       ## @BIT6
	.comm	_MGSL_INTERFACE_MSB_FIRST,4,2   ## @MGSL_INTERFACE_MSB_FIRST
	.comm	_BIT4,1,0                       ## @BIT4
	.comm	_SerialSignal_DTR,4,2           ## @SerialSignal_DTR
	.comm	_BIT3,1,0                       ## @BIT3
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_BIT2,1,0                       ## @BIT2
	.comm	_MGSL_INTERFACE_LL,4,2          ## @MGSL_INTERFACE_LL
	.comm	_BIT1,1,0                       ## @BIT1
	.comm	_MGSL_INTERFACE_RL,4,2          ## @MGSL_INTERFACE_RL
	.comm	_BIT0,1,0                       ## @BIT0
	.comm	_VCR,4,2                        ## @VCR
	.no_dead_strip	_msc_set_vcr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msc_set_vcr
_msc_set_vcr:                           ; @msc_set_vcr
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MGSL_INTERFACE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MGSL_INTERFACE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #130
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x9, _BIT5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIT5@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x9, _BIT7@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIT7@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh7:
	adrp	x10, _BIT6@GOTPAGE
Lloh8:
	ldr	x10, [x10, _BIT6@GOTPAGEOFF]
	ldrb	w10, [x10]
Lloh9:
	adrp	x11, _BIT5@GOTPAGE
Lloh10:
	ldr	x11, [x11, _BIT5@GOTPAGEOFF]
	ldrb	w11, [x11]
	add	w9, w10, w9
	add	w9, w9, w11
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x9, _BIT6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BIT6@GOTPAGEOFF]
LBB0_6:
	ldrb	w9, [x9]
	b	LBB0_8
LBB0_7:
	mov	w9, #0
LBB0_8:
Lloh13:
	adrp	x10, _MGSL_INTERFACE_MSB_FIRST@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MGSL_INTERFACE_MSB_FIRST@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _BIT4@GOTPAGE
Lloh17:
	ldr	x11, [x11, _BIT4@GOTPAGEOFF]
	ldrb	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _SerialSignal_DTR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SerialSignal_DTR@GOTPAGEOFF]
	ldr	w11, [x0, #4]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x12, _BIT3@GOTPAGE
Lloh22:
	ldr	x12, [x12, _BIT3@GOTPAGEOFF]
	ldrb	w12, [x12]
	tst	w10, w11
	csel	w10, wzr, w12, eq
	orr	w9, w9, w10
Lloh23:
	adrp	x10, _SerialSignal_RTS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SerialSignal_RTS@GOTPAGEOFF]
Lloh25:
	adrp	x12, _BIT2@GOTPAGE
Lloh26:
	ldr	x12, [x12, _BIT2@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	ldrb	w12, [x12]
	tst	w10, w11
	csel	w10, wzr, w12, eq
Lloh28:
	adrp	x11, _MGSL_INTERFACE_LL@GOTPAGE
Lloh29:
	ldr	x11, [x11, _MGSL_INTERFACE_LL@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh30:
	ldr	w10, [x11]
Lloh31:
	adrp	x11, _BIT1@GOTPAGE
Lloh32:
	ldr	x11, [x11, _BIT1@GOTPAGEOFF]
	ldrb	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh33:
	adrp	x10, _MGSL_INTERFACE_RL@GOTPAGE
Lloh34:
	ldr	x10, [x10, _MGSL_INTERFACE_RL@GOTPAGEOFF]
Lloh35:
	adrp	x11, _BIT0@GOTPAGE
Lloh36:
	ldr	x11, [x11, _BIT0@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	ldrb	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
Lloh38:
	adrp	x10, _VCR@GOTPAGE
Lloh39:
	ldr	x10, [x10, _VCR@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh40:
	ldr	w1, [x10]
	and	w2, w8, #0xff
	b	_wr_reg8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MGSL_INTERFACE_MASK,4,2        ; @MGSL_INTERFACE_MASK
	.comm	_BIT5,1,0                       ; @BIT5
	.comm	_BIT7,1,0                       ; @BIT7
	.comm	_BIT6,1,0                       ; @BIT6
	.comm	_MGSL_INTERFACE_MSB_FIRST,4,2   ; @MGSL_INTERFACE_MSB_FIRST
	.comm	_BIT4,1,0                       ; @BIT4
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.comm	_BIT3,1,0                       ; @BIT3
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_BIT2,1,0                       ; @BIT2
	.comm	_MGSL_INTERFACE_LL,4,2          ; @MGSL_INTERFACE_LL
	.comm	_BIT1,1,0                       ; @BIT1
	.comm	_MGSL_INTERFACE_RL,4,2          ; @MGSL_INTERFACE_RL
	.comm	_BIT0,1,0                       ; @BIT0
	.comm	_VCR,4,2                        ; @VCR
	.no_dead_strip	_msc_set_vcr
.subsections_via_symbols
