	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_ds_heartbeat_expiry       ## -- Begin function ax25_ds_heartbeat_expiry
	.p2align	4, 0x90
_ax25_ds_heartbeat_expiry:              ## @ax25_ds_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
	cmpl	$128, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$129, %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	_sock_put
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bh_unlock_sock                 ## TAILCALL
LBB0_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)
	jmp	LBB0_15
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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ax25_ds_heartbeat_expiry       ; -- Begin function ax25_ds_heartbeat_expiry
	.p2align	2
_ax25_ds_heartbeat_expiry:              ; @ax25_ds_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]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.4:
	cbz	x19, LBB0_14
; %bb.5:
Lloh0:
	adrp	x8, _SOCK_DESTROY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DESTROY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_15
LBB0_6:
	mov	x0, x19
	bl	_sock_hold
	mov	x0, x20
	bl	_ax25_destroy_socket
	mov	x0, x19
	bl	_sock_put
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bh_unlock_sock
LBB0_7:
	cbz	x19, LBB0_13
; %bb.8:
	add	x0, x19, #4
	bl	_atomic_read
	ldr	w8, [x19]
	cmp	w0, w8, asr #1
	b.ge	LBB0_12
; %bb.9:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _AX25_COND_OWN_RX_BUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AX25_COND_OWN_RX_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh6:
	adrp	x10, _AX25_COND_ACK_PENDING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AX25_COND_ACK_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x20, #4]
	b	LBB0_12
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]
Lloh9:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.16:
Lloh12:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	w0, LBB0_6
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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
.subsections_via_symbols
