	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_end_session                    ## -- Begin function end_session
	.p2align	4, 0x90
_end_session:                           ## @end_session
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_3
## %bb.2:
	movl	(%rax), %edi
	callq	_evbuffer_write
LBB0_3:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	4(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_6
## %bb.5:
	movl	(%rax), %edi
	callq	_evbuffer_write
LBB0_6:
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_8
## %bb.7:
	callq	_close
LBB0_8:
	movl	4(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_10
## %bb.9:
	callq	_close
LBB0_10:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_bufferevent_free
LBB0_12:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_bufferevent_free
LBB0_14:
	movl	8(%rbx), %edi
	callq	_prepare_commit
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:
	xorl	%eax, %eax
	callq	_do_commit
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_do_rollback
	testl	%r14d, %r14d
	jne	LBB0_19
	jmp	LBB0_20
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_20
LBB0_19:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %r12d
	movl	%r14d, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_logmsg
LBB0_20:
	movq	_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	_session_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%d ending session"

	.comm	_errno,4,2                      ## @errno
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"#%d pf rule removal failed: %s"

	.comm	_entry,4,2                      ## @entry
	.comm	_session_count,4,2              ## @session_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_end_session                    ; -- Begin function end_session
	.p2align	2
_end_session:                           ; @end_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_logmsg
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x19]
	cmn	w1, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x8]
	bl	_evbuffer_write
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w1, [x19, #4]
	cmn	w1, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x8]
	bl	_evbuffer_write
LBB0_6:
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.7:
	bl	_close
LBB0_8:
	ldr	w0, [x19, #4]
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:
	bl	_close
LBB0_10:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_bufferevent_free
LBB0_12:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_bufferevent_free
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_prepare_commit
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.15:
	bl	_do_commit
	cmn	w0, #1
	b.ne	LBB0_19
; %bb.16:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	bl	_do_rollback
	cbnz	w20, LBB0_18
	b	LBB0_19
LBB0_17:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	cbz	w20, LBB0_19
LBB0_18:
Lloh11:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	ldr	w22, [x19, #8]
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_logmsg
LBB0_19:
Lloh16:
	adrp	x8, _entry@GOTPAGE
Lloh17:
	ldr	x8, [x8, _entry@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LIST_REMOVE
	mov	x0, x19
	bl	_free
Lloh19:
	adrp	x8, _session_count@GOTPAGE
Lloh20:
	ldr	x8, [x8, _session_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%d ending session"

	.comm	_errno,4,2                      ; @errno
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"#%d pf rule removal failed: %s"

	.comm	_entry,4,2                      ; @entry
	.comm	_session_count,4,2              ; @session_count
.subsections_via_symbols
