	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function db9_saturn
_db9_saturn:                            ## @db9_saturn
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	-128(%rdi), %ecx
	movl	$-1, %eax
	cmpl	$2, %ecx
	ja	LBB0_4
## %bb.1:
	movslq	%ecx, %rax
	leaq	l_switch.table.db9_saturn(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	l_switch.table.db9_saturn.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_db9_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movl	(%rax,%rcx,4), %edi
	movq	_DB9_MAX_DEVICES@GOTPCREL(%rip), %rax
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movl	(%rax), %esi
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	callq	_min
	movl	%eax, %r13d
	leaq	-112(%rbp), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_db9_saturn_read_packet
	movzbl	%al, %edi
	movq	%r12, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_db9_saturn_report
	movl	%eax, %r14d
	incl	%ebx
	decl	%r15d
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_db9_modes,8,3                  ## @db9_modes
	.comm	_DB9_MAX_DEVICES,4,2            ## @DB9_MAX_DEVICES
	.no_dead_strip	_db9_saturn
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.db9_saturn
l_switch.table.db9_saturn:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.db9_saturn.1
l_switch.table.db9_saturn.1:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function db9_saturn
_db9_saturn:                            ; @db9_saturn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	sbfiz	x8, x8, #2, #32
Lloh3:
	adrp	x9, l_switch.table.db9_saturn@PAGE
Lloh4:
	add	x9, x9, l_switch.table.db9_saturn@PAGEOFF
	ldr	w21, [x9, x8]
Lloh5:
	adrp	x9, l_switch.table.db9_saturn.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.db9_saturn.1@PAGEOFF
	ldr	w24, [x9, x8]
Lloh7:
	adrp	x8, _db9_modes@GOTPAGE
Lloh8:
	ldr	x8, [x8, _db9_modes@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w0, [x8, w0, uxtw #2]
Lloh10:
	adrp	x8, _DB9_MAX_DEVICES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DB9_MAX_DEVICES@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_min
	mov	x22, x0
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x21
	mov	w3, #1
	bl	_db9_saturn_read_packet
	add	x1, sp, #12
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	bl	_db9_saturn_report
	mov	x23, x0
	add	w21, w21, #1
	subs	w24, w24, #1
	b.ne	LBB0_2
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_db9_modes,8,3                  ; @db9_modes
	.comm	_DB9_MAX_DEVICES,4,2            ; @DB9_MAX_DEVICES
	.no_dead_strip	_db9_saturn
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.db9_saturn
l_switch.table.db9_saturn:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.db9_saturn.1
l_switch.table.db9_saturn.1:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	1                               ; 0x1

.subsections_via_symbols
