	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetModemSpeed
_SetModemSpeed:                         ## @SetModemSpeed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movslq	4(%rdi), %rcx
	cmpl	%ecx, %eax
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	movq	(%rdx,%rcx,8), %r14
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.2:
	incl	%ecx
	cmpl	%ecx, %eax
	jle	LBB0_4
## %bb.3:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	$0, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-24(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_8
## %bb.7:
	testq	%rax, %rax
	js	LBB0_8
## %bb.10:
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_physical_SetSpeed
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_15
## %bb.11:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_5:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_physical_SetSync
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_8:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SetModemSpeed: Too many arguments\n"

L_.str.1:                               ## @.str.1
	.asciz	"sync"

L_.str.2:                               ## @.str.2
	.asciz	"SetModemSpeed: Bad argument \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"%s: Invalid speed\n"

L_.str.4:                               ## @.str.4
	.asciz	"SetModemSpeed: No speed specified\n"

	.no_dead_strip	_SetModemSpeed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetModemSpeed
_SetModemSpeed:                         ; @SetModemSpeed
	.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
	ldp	w8, w9, [x0]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	w8, w9
	b.le	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x10, [x0, #8]
	ldr	x20, [x10, x9, lsl #3]
	ldr	x10, [x20]
	cbz	x10, LBB0_4
; %bb.2:
	add	w9, w9, #1
	cmp	w8, w9
	b.le	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _LogWARN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _LogWARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_5:
	bl	_log_Printf
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_12
; %bb.8:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_13
; %bb.9:
	mov	x1, x0
	tbnz	x0, #63, LBB0_13
; %bb.10:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_physical_SetSpeed
	cbz	x0, LBB0_14
; %bb.11:
	mov	w0, #0
	b	LBB0_6
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_physical_SetSync
	mov	w0, #0
	b	LBB0_6
LBB0_13:
Lloh12:
	adrp	x8, _LogWARN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_14:
Lloh17:
	adrp	x8, _LogWARN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SetModemSpeed: Too many arguments\n"

l_.str.1:                               ; @.str.1
	.asciz	"sync"

l_.str.2:                               ; @.str.2
	.asciz	"SetModemSpeed: Bad argument \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"%s: Invalid speed\n"

l_.str.4:                               ; @.str.4
	.asciz	"SetModemSpeed: No speed specified\n"

	.no_dead_strip	_SetModemSpeed
.subsections_via_symbols
