	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_std_heartbeat_expiry      ## -- Begin function ax25_std_heartbeat_expiry
	.p2align	4, 0x90
_ax25_std_heartbeat_expiry:             ## @ax25_std_heartbeat_expiry
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_bh_lock_sock
LBB0_2:
	movl	(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.10:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.11:
	leaq	4(%rbx), %rdi
	callq	_atomic_read
	movl	(%rbx), %ecx
	sarl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_15
## %bb.12:
	movl	4(%r14), %eax
	movq	_AX25_COND_OWN_RX_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.13:
	movq	_AX25_COND_ACK_PENDING@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 4(%r14)
	movq	_AX25_RR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AX25_POLLOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AX25_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_ax25_send_control
	jmp	LBB0_15
LBB0_3:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	movq	_SOCK_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	callq	_sock_hold
	movq	%r14, %rdi
	callq	_ax25_destroy_socket
	movq	%rbx, %rdi
	callq	_bh_unlock_sock
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sock_put                       ## TAILCALL
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_15:
	movq	%rbx, %rdi
	callq	_bh_unlock_sock
LBB0_16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ax25_start_heartbeat           ## TAILCALL
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ax25_destroy_socket            ## TAILCALL
LBB0_6:
	movl	8(%rbx), %eax
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.7:
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DESTROY,4,2               ## @SOCK_DESTROY
	.comm	_TCP_LISTEN,4,2                 ## @TCP_LISTEN
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.comm	_AX25_COND_OWN_RX_BUSY,4,2      ## @AX25_COND_OWN_RX_BUSY
	.comm	_AX25_COND_ACK_PENDING,4,2      ## @AX25_COND_ACK_PENDING
	.comm	_AX25_RR,4,2                    ## @AX25_RR
	.comm	_AX25_POLLOFF,4,2               ## @AX25_POLLOFF
	.comm	_AX25_RESPONSE,4,2              ## @AX25_RESPONSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_std_heartbeat_expiry      ; -- Begin function ax25_std_heartbeat_expiry
	.p2align	2
_ax25_std_heartbeat_expiry:             ; @ax25_std_heartbeat_expiry
	.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, x0
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_bh_lock_sock
LBB0_2:
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_7
; %bb.3:
	cbz	x19, LBB0_13
; %bb.4:
	add	x0, x19, #4
	bl	_atomic_read
	ldr	w8, [x19]
	cmp	w0, w8, asr #1
	b.ge	LBB0_12
; %bb.5:
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _AX25_COND_OWN_RX_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AX25_COND_OWN_RX_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
Lloh3:
	adrp	x10, _AX25_COND_ACK_PENDING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AX25_COND_ACK_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x20, #4]
Lloh6:
	adrp	x8, _AX25_RR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AX25_RR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AX25_POLLOFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AX25_POLLOFF@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _AX25_RESPONSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AX25_RESPONSE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ax25_send_control
	b	LBB0_12
LBB0_7:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.8:
	cbz	x19, LBB0_14
; %bb.9:
Lloh15:
	adrp	x8, _SOCK_DESTROY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOCK_DESTROY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_sock_hold
	mov	x0, x20
	bl	_ax25_destroy_socket
	mov	x0, x19
	bl	_bh_unlock_sock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sock_put
LBB0_11:
	cbz	x19, LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_bh_unlock_sock
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ax25_start_heartbeat
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ax25_destroy_socket
LBB0_15:
	ldr	w8, [x19, #8]
Lloh18:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.16:
Lloh21:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	w0, LBB0_10
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DESTROY,4,2               ; @SOCK_DESTROY
	.comm	_TCP_LISTEN,4,2                 ; @TCP_LISTEN
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.comm	_AX25_COND_OWN_RX_BUSY,4,2      ; @AX25_COND_OWN_RX_BUSY
	.comm	_AX25_COND_ACK_PENDING,4,2      ; @AX25_COND_ACK_PENDING
	.comm	_AX25_RR,4,2                    ; @AX25_RR
	.comm	_AX25_POLLOFF,4,2               ; @AX25_POLLOFF
	.comm	_AX25_RESPONSE,4,2              ; @AX25_RESPONSE
.subsections_via_symbols
