	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Rs232SetCommunicationTimeoutsWin32 ## -- Begin function Rs232SetCommunicationTimeoutsWin32
	.p2align	4, 0x90
_Rs232SetCommunicationTimeoutsWin32:    ## @Rs232SetCommunicationTimeoutsWin32
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_hPortHandle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_GetCommTimeouts
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	%r13, -64(%rbp)
	movq	%r14, -72(%rbp)
	movq	%r15, -80(%rbp)
	movq	_hPortHandle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_SetCommTimeouts
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %r14
LBB0_5:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_TEXT
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	__tprintf
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hPortHandle,4,2                ## @hPortHandle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetCommTimeouts() failed. GetLastError() = %lu.\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"SetCommTimeouts() failed. GetLastError() = %lu.\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Rs232SetCommunicationTimeoutsWin32 ; -- Begin function Rs232SetCommunicationTimeoutsWin32
	.p2align	2
_Rs232SetCommunicationTimeoutsWin32:    ; @Rs232SetCommunicationTimeoutsWin32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _hPortHandle@GOTPAGE
Lloh1:
	ldr	x24, [x24, _hPortHandle@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x1, sp, #8
	bl	_GetCommTimeouts
	cbz	w0, LBB0_3
; %bb.1:
	stp	x22, x23, [sp, #32]
	stp	x20, x21, [sp, #16]
	str	x19, [sp, #8]
	ldr	w0, [x24]
	add	x1, sp, #8
	bl	_SetCommTimeouts
	cbz	w0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x19, l_.str.1@PAGE
Lloh7:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_5:
	bl	_GetLastError
	mov	x20, x0
	mov	x0, x19
	bl	_TEXT
	mov	x1, x20
	bl	__tprintf
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hPortHandle,4,2                ; @hPortHandle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetCommTimeouts() failed. GetLastError() = %lu.\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"SetCommTimeouts() failed. GetLastError() = %lu.\n"

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