	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax25_ds_state1_machine
_ax25_ds_state1_machine:                ## @ax25_ds_state1_machine
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %rbx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	%rbx, %rdi
	callq	_ax25_calculate_rtt
	movq	%rbx, %rdi
	callq	_ax25_stop_t1timer
	movq	%rbx, %rdi
	callq	_ax25_start_t3timer
	movq	%rbx, %rdi
	callq	_ax25_start_idletimer
	movl	$0, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	_AX25_STATE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$0, 8(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:
	callq	_bh_lock_sock
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdi
	movl	%eax, 8(%rdi)
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sock_flag
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	callq	*(%rdi)
LBB0_10:
	movq	(%rbx), %rdi
	callq	_bh_unlock_sock
LBB0_11:
	movq	%rbx, %rdi
	callq	_ax25_dama_on
	movq	%rbx, %rdi
	callq	_ax25_std_enquiry_response
	jmp	LBB0_17
LBB0_14:
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.15:
	movq	_AX25_POLLON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AX25_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$130, %esi
	jmp	LBB0_16
LBB0_4:
	movq	_AX25_EMODULUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_AX25_VALUES_EWINDOW@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_AX25_MODULUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_AX25_VALUES_WINDOW@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 40(%rbx)
	movq	_AX25_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	$128, %esi
	jmp	LBB0_6
LBB0_12:
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.13:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ax25_disconnect
	jmp	LBB0_17
LBB0_5:
	movq	_AX25_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	$131, %esi
LBB0_6:
	movl	%ecx, %edx
	movl	%eax, %ecx
LBB0_16:
	callq	_ax25_send_control
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_AX25_MODULUS,4,2               ## @AX25_MODULUS
	.comm	_AX25_VALUES_WINDOW,8,3         ## @AX25_VALUES_WINDOW
	.comm	_AX25_RESPONSE,4,2              ## @AX25_RESPONSE
	.comm	_AX25_EMODULUS,4,2              ## @AX25_EMODULUS
	.comm	_AX25_VALUES_EWINDOW,8,3        ## @AX25_VALUES_EWINDOW
	.comm	_AX25_STATE_3,4,2               ## @AX25_STATE_3
	.comm	_TCP_ESTABLISHED,4,2            ## @TCP_ESTABLISHED
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_AX25_POLLON,4,2                ## @AX25_POLLON
	.comm	_AX25_COMMAND,4,2               ## @AX25_COMMAND
	.no_dead_strip	_ax25_ds_state1_machine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax25_ds_state1_machine
_ax25_ds_state1_machine:                ; @ax25_ds_state1_machine
	.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	x19, x0
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_ax25_calculate_rtt
	mov	x0, x19
	bl	_ax25_stop_t1timer
	mov	x0, x19
	bl	_ax25_start_t3timer
	mov	x0, x19
	bl	_ax25_start_idletimer
	str	wzr, [x19, #24]
	str	xzr, [x19, #16]
Lloh2:
	adrp	x8, _AX25_STATE_3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AX25_STATE_3@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_bh_lock_sock
Lloh5:
	adrp	x8, _TCP_ESTABLISHED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x0, [x19]
	str	w8, [x0, #8]
Lloh8:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_sock_flag
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	ldr	x8, [x0]
	blr	x8
LBB0_5:
	ldr	x0, [x19]
	bl	_bh_unlock_sock
LBB0_6:
	mov	x0, x19
	bl	_ax25_dama_on
	mov	x0, x19
	bl	_ax25_std_enquiry_response
	b	LBB0_17
LBB0_7:
	cbz	w3, LBB0_17
; %bb.8:
Lloh11:
	adrp	x8, _AX25_POLLON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AX25_POLLON@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _AX25_COMMAND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AX25_COMMAND@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #130
	b	LBB0_16
LBB0_9:
Lloh17:
	adrp	x8, _AX25_EMODULUS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AX25_EMODULUS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _AX25_VALUES_EWINDOW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AX25_VALUES_EWINDOW@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x8, _AX25_MODULUS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AX25_MODULUS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _AX25_VALUES_WINDOW@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AX25_VALUES_WINDOW@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #40]
Lloh27:
	adrp	x8, _AX25_RESPONSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AX25_RESPONSE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	mov	x0, x19
	mov	w1, #128
	b	LBB0_15
LBB0_12:
	cbz	w3, LBB0_17
; %bb.13:
Lloh30:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ax25_disconnect
	b	LBB0_17
LBB0_14:
Lloh33:
	adrp	x8, _AX25_RESPONSE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AX25_RESPONSE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	mov	x0, x19
	mov	w1, #131
LBB0_15:
	mov	x2, x3
	mov	x3, x8
LBB0_16:
	bl	_ax25_send_control
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_AX25_MODULUS,4,2               ; @AX25_MODULUS
	.comm	_AX25_VALUES_WINDOW,8,3         ; @AX25_VALUES_WINDOW
	.comm	_AX25_RESPONSE,4,2              ; @AX25_RESPONSE
	.comm	_AX25_EMODULUS,4,2              ; @AX25_EMODULUS
	.comm	_AX25_VALUES_EWINDOW,8,3        ; @AX25_VALUES_EWINDOW
	.comm	_AX25_STATE_3,4,2               ; @AX25_STATE_3
	.comm	_TCP_ESTABLISHED,4,2            ; @TCP_ESTABLISHED
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_AX25_POLLON,4,2                ; @AX25_POLLON
	.comm	_AX25_COMMAND,4,2               ; @AX25_COMMAND
	.no_dead_strip	_ax25_ds_state1_machine
.subsections_via_symbols
