	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_free_active_base
_test_free_active_base:                 ## @test_free_active_base
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_event_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	4(%rax), %edx
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dummy_read_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	callq	_event_assign
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_event_add
	movq	%rbx, %rdi
	callq	_event_base_free
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_tt_fail_msg
LBB0_3:
	xorl	%eax, %eax
	callq	_event_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_dummy_read_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_event_assign
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_event_active
	movq	%rbx, %rdi
	callq	_event_base_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_dummy_read_cb,4,2              ## @dummy_read_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create event_base for test"

	.no_dead_strip	_test_free_active_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_free_active_base
_test_free_active_base:                 ; @test_free_active_base
	.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	x20, x0
	bl	_event_init
Lloh0:
	adrp	x22, _dummy_read_cb@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dummy_read_cb@GOTPAGEOFF]
Lloh2:
	adrp	x21, _EV_READ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EV_READ@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	ldr	w3, [x21]
	ldr	w4, [x22]
	add	x0, sp, #8
	mov	x1, x19
	mov	x5, #0
	bl	_event_assign
	add	x0, sp, #8
	mov	x1, #0
	bl	_event_add
	mov	x0, x19
	bl	_event_base_free
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tt_fail_msg
LBB0_3:
	bl	_event_init
	mov	x19, x0
	bl	_tt_assert
	ldr	w4, [x22]
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	x5, #0
	bl	_event_assign
	ldr	w1, [x21]
	add	x0, sp, #8
	mov	w2, #1
	bl	_event_active
	mov	x0, x19
	bl	_event_base_free
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_dummy_read_cb,4,2              ; @dummy_read_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create event_base for test"

	.no_dead_strip	_test_free_active_base
.subsections_via_symbols
