	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function baycom_setmode
_baycom_setmode:                        ## @baycom_setmode
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	3(%rbx), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
                                        ## kill: def $eax killed $eax def $rax
	leal	-3(%rax), %ecx
	cmpl	$45, %ecx
	ja	LBB0_3
## %bb.2:
	imull	$100, %eax, %eax
	movl	%eax, (%r14)
LBB0_3:
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$0, 4(%r14)
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	movl	$43, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$-1, 4(%r14)
	jmp	LBB0_8
LBB0_7:
	movl	$1, 4(%r14)
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ser"

	.no_dead_strip	_baycom_setmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function baycom_setmode
_baycom_setmode:                        ; @baycom_setmode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_strncmp
	cbnz	w0, LBB0_3
; %bb.1:
	add	x0, x20, #3
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	sub	w8, w0, #3
	cmp	w8, #45
	b.hi	LBB0_3
; %bb.2:
	mov	w8, #100
	mul	w8, w0, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	mov	w1, #42
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.4:
	str	wzr, [x19, #4]
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	mov	w1, #43
	bl	_strchr
	cbz	x0, LBB0_7
; %bb.6:
	mov	w8, #-1
	b	LBB0_8
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ser"

	.no_dead_strip	_baycom_setmode
.subsections_via_symbols
