	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_physical_SetParity             ## -- Begin function physical_SetParity
	.p2align	4, 0x90
_physical_SetParity:                    ## @physical_SetParity
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_GetParityValue
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, 12(%r15)
	movq	(%r15), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	js	LBB0_4
## %bb.2:
	leaq	-40(%rbp), %r12
	movq	%r12, %rsi
	callq	_tcgetattr
	movq	_CSIZE@GOTPCREL(%rip), %rax
	movq	_PARODD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PARENB@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	-40(%rbp), %ecx
	orl	%ebx, %ecx
	movl	%ecx, -40(%rbp)
	movq	(%r15), %rdi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_tcsetattr
	jmp	LBB0_4
LBB0_3:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_log_Printf
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_PARODD,4,2                     ## @PARODD
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: Invalid parity\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_physical_SetParity             ; -- Begin function physical_SetParity
	.p2align	2
_physical_SetParity:                    ; @physical_SetParity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_GetParityValue
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
	str	w0, [x19, #12]
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_3
; %bb.2:
	add	x1, sp, #8
	bl	_tcgetattr
Lloh0:
	adrp	x8, _CSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PARODD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PARODD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _PARENB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PARENB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	orr	w8, w8, w20
	str	w8, [sp, #8]
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_tcsetattr
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _LogWARN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_log_Printf
	mov	w0, #-1
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_PARODD,4,2                     ; @PARODD
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: Invalid parity\n"

.subsections_via_symbols
