	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_one_record
_insert_one_record:                     ## @insert_one_record
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r15
	addq	$16, %rdi
	callq	_string_list_insert
	movq	%rax, %r14
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_UTIL_TO_INT
	incq	%rax
	movq	%rax, (%r14)
	jmp	LBB0_24
LBB0_2:
	movq	(%r15), %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r12
	addq	%rbx, %r12
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	1(%rax), %rcx
	cmpq	%r12, %rax
	cmovbq	%rcx, %rbx
	testq	%r12, %r12
	cmoveq	%rcx, %rbx
LBB0_11:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$10, (%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_13
LBB0_16:
	leaq	L_.str.1(%rip), %rdx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_format_subject
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, %r12
	testq	%r15, %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	cmpl	$6, %eax
	jl	LBB0_21
## %bb.18:
	movl	%eax, %r14d
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%rax, %rbx
	movl	%r14d, %r15d
	movl	$1, %r13d
	subl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$5, %edx
	callq	_memcpy
	leaq	5(%rbx), %rdi
	addq	%r15, %rbx
	addl	%r13d, %r14d
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memmove
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_20
LBB0_21:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_23
## %bb.22:
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_23:
	movq	%r12, %rsi
	callq	_string_list_append
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[PATCH"

L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.asciz	"/.../"

	.no_dead_strip	_insert_one_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_one_record
_insert_one_record:                     ; @insert_one_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x0
	add	x0, x0, #16
	bl	_string_list_insert
	mov	x19, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_UTIL_TO_INT
	add	x8, x0, #1
	str	x8, [x19]
	b	LBB0_21
LBB0_2:
	ldr	x20, [x20]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldrb	w8, [x21]
	cbz	w8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21, #1]!
	cbnz	w8, LBB0_3
LBB0_5:
	mov	x0, x21
	mov	w1, #10
	bl	_strchr
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_strlen
	add	x22, x21, w0, sxtw
LBB0_7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_starts_with
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #93
	bl	_strchr
	cmp	x0, x22
	ccmp	x22, #0, #4, hs
	csinc	x8, x21, x0, ne
	cmp	x0, #0
	csel	x21, x21, x8, eq
LBB0_9:
	ldrb	w8, [x21]
	cbz	w8, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #10
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x21, #1]!
	cbnz	w8, LBB0_10
LBB0_13:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x1, x21
	bl	_format_subject
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	mov	x21, x0
	cbz	x20, LBB0_18
; %bb.14:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #6
	b.lt	LBB0_18
; %bb.15:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_strstr
	cbz	x0, LBB0_18
; %bb.16:
	mov	x23, x0
	mov	w25, w22
	mov	w8, #1
	sub	w26, w8, w22
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	mov	w2, #5
	bl	_memcpy
	add	x0, x23, #5
	add	x1, x23, x25
	add	w2, w26, w24
	bl	_memmove
	mov	x0, x21
	mov	x1, x20
	bl	_strstr
	mov	x23, x0
	cbnz	x0, LBB0_17
LBB0_18:
	ldr	x0, [x19]
	cbnz	x0, LBB0_20
; %bb.19:
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	str	x0, [x19]
LBB0_20:
	mov	x1, x21
	bl	_string_list_append
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[PATCH"

l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.asciz	"/.../"

	.no_dead_strip	_insert_one_record
.subsections_via_symbols
