	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kill_transaction
_kill_transaction:                      ## @kill_transaction
	.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
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	_transactions@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%esi, %edx
	jge	LBB0_4
## %bb.3:
	incl	%edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-2, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_4:
	movl	%edi, %r14d
	movq	_SIGINT@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_SIGKILL@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-3, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_T@GOTPCREL(%rip), %rdi
	movl	$8, %edx
	callq	_tb_alloc_logevent
	movl	%r14d, (%rax)
	movl	%ebx, 4(%rax)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kill_transaction: X < 1\n"

	.comm	_transactions,4,2               ## @transactions
L_.str.1:                               ## @.str.1
	.asciz	"kill_transaction: X >= current transaction id (X = %d, transaction_id = %d)\n"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGKILL,4,2                    ## @SIGKILL
L_.str.2:                               ## @.str.2
	.asciz	"kill_transaction: Unknown signal: %d\n"

	.comm	_T,4,2                          ## @T
	.comm	_LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL,4,2 ## @LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL
	.no_dead_strip	_kill_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kill_transaction
_kill_transaction:                      ; @kill_transaction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #0
	b.le	LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _transactions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _transactions@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_4
; %bb.2:
	add	w8, w8, #1
	stp	x19, x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w0, #-2
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	mov	x20, x0
Lloh7:
	adrp	x8, _SIGINT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SIGTERM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SIGTERM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _SIGKILL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SIGKILL@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	ccmp	w10, w0, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x0, _T@GOTPAGE
Lloh20:
	ldr	x0, [x0, _T@GOTPAGEOFF]
	mov	w2, #8
	bl	_tb_alloc_logevent
	mov	x8, x0
	mov	w0, #0
	stp	w20, w19, [x8]
	b	LBB0_7
LBB0_6:
	str	x20, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kprintf
	mov	w0, #-3
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kill_transaction: X < 1\n"

	.comm	_transactions,4,2               ; @transactions
l_.str.1:                               ; @.str.1
	.asciz	"kill_transaction: X >= current transaction id (X = %d, transaction_id = %d)\n"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGKILL,4,2                    ; @SIGKILL
l_.str.2:                               ; @.str.2
	.asciz	"kill_transaction: Unknown signal: %d\n"

	.comm	_T,4,2                          ; @T
	.comm	_LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL,4,2 ; @LEV_COPYEXEC_AUX_TRANSACTION_CMD_KILL
	.no_dead_strip	_kill_transaction
.subsections_via_symbols
