	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Rs232WriteByteWin32            ## -- Begin function Rs232WriteByteWin32
	.p2align	4, 0x90
_Rs232WriteByteWin32:                   ## @Rs232WriteByteWin32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	_hPortHandle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rcx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_WriteFile
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$1, -12(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_TEXT
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hPortHandle,4,2                ## @hPortHandle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WriteFile() failed. GetLastError() = %lu.\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Rs232WriteByteWin32            ; -- Begin function Rs232WriteByteWin32
	.p2align	2
_Rs232WriteByteWin32:                   ; @Rs232WriteByteWin32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	stp	wzr, w0, [sp, #8]
Lloh0:
	adrp	x8, _hPortHandle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hPortHandle@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #12
	add	x3, sp, #8
	mov	w2, #1
	mov	x4, #0
	bl	_WriteFile
	ldr	w8, [sp, #8]
	cmp	w0, #0
	ccmp	w8, #1, #0, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_GetLastError
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEXT
	mov	x1, x19
	bl	__tprintf
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_hPortHandle,4,2                ; @hPortHandle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WriteFile() failed. GetLastError() = %lu.\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
