	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srec_write_record
_srec_write_record:                     ## @srec_write_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	%r8, %r12
	movq	%rcx, %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXCHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	addl	$6, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movb	$83, (%r15)
	leal	48(%r14), %eax
	movb	%al, 1(%r15)
	leaq	4(%r15), %r13
	cmpl	$9, %r14d
	ja	LBB0_8
## %bb.1:
	movl	$515, %eax                      ## imm = 0x203
	btl	%r14d, %eax
	jb	LBB0_2
## %bb.3:
	movl	$136, %eax
	btl	%r14d, %eax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jb	LBB0_5
## %bb.4:
	movl	$260, %eax                      ## imm = 0x104
	btl	%r14d, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_6
	jmp	LBB0_10
LBB0_2:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_5:
	sarl	$24, %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_TOHEX
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	leaq	6(%r15), %r13
LBB0_6:
	sarl	$16, %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_TOHEX
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	addq	$2, %r13
LBB0_7:
	movl	%r14d, %esi
	sarl	$8, %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_TOHEX
	leaq	2(%r13), %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_TOHEX
	addq	$4, %r13
LBB0_8:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_TOHEX
	addq	$2, %r13
	addq	$4, %rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	jb	LBB0_9
## %bb.11:
	movq	%r15, %rdi
	addq	$2, %rdi
	movq	%r13, %rax
	subq	%rdi, %rax
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rax, %rsi
	shrq	%rsi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_TOHEX
	movq	%r13, %rdi
	movl	$255, %esi
	movl	$255, %edx
	callq	_TOHEX
	movw	$2573, 2(%r13)                  ## imm = 0xA0D
	subl	%r15d, %r13d
	addl	$4, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_bfd_bwrite
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r13d, %ecx
	sete	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_13
## %bb.12:
	movb	%cl, %al
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXCHUNK,4,2                   ## @MAXCHUNK
	.no_dead_strip	_srec_write_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srec_write_record
_srec_write_record:                     ; @srec_write_record
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXCHUNK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXCHUNK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w8, w8, #6
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w8, #83
	strb	w8, [x20]
	add	w8, w1, #48
	strb	w8, [x20, #1]
	add	x22, x20, #4
	cmp	w1, #9
	b.hi	LBB0_8
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w1
	mov	w9, #515
	tst	w8, w9
	b.ne	LBB0_6
; %bb.2:
	mov	w9, #136
	tst	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	lsl	w8, w8, w1
	mov	w9, #260
	tst	w8, w9
	b.ne	LBB0_5
	b	LBB0_8
LBB0_4:
	asr	w1, w24, #24
	mov	x0, x22
	mov	w2, #0
	bl	_TOHEX
	add	x22, x20, #6
LBB0_5:
	asr	w1, w24, #16
	mov	x0, x22
	mov	w2, #0
	bl	_TOHEX
	add	x22, x22, #2
LBB0_6:
	asr	w1, w24, #8
	mov	x0, x22
	mov	w2, #0
	bl	_TOHEX
	add	x0, x22, #2
	mov	x1, x24
	mov	w2, #0
	bl	_TOHEX
	add	x22, x22, #4
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23], #4
	mov	x0, x22
	mov	w2, #0
	bl	_TOHEX
	add	x22, x22, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x21
	b.lo	LBB0_7
; %bb.9:
	add	x0, x20, #2
	sub	x8, x22, x0
	cmp	x8, #0
	cinc	x8, x8, lt
	lsr	x1, x8, #1
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_TOHEX
	mov	x0, x22
	mov	w1, #255
	mov	w2, #255
	bl	_TOHEX
	mov	w8, #2573
	strh	w8, [x22, #2]
	sub	w8, w22, w20
	add	w21, w8, #4
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_bfd_bwrite
	cmp	w0, w21
	cset	w0, eq
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXCHUNK,4,2                   ; @MAXCHUNK
	.no_dead_strip	_srec_write_record
.subsections_via_symbols
