	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srec_write_section
_srec_write_section:                    ## @srec_write_section
	.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	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_Chunk@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	_MAXCHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	(%r15), %eax
	addl	$-2, %eax
	cmpl	%eax, %ecx
	jg	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$1, %eax
LBB0_3:
	movq	_Chunk@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	movq	16(%rdx), %r13
	xorl	%ebx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %eax
	subl	%ebx, %eax
	jbe	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_Chunk@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpl	%r12d, %eax
	cmovbl	%eax, %r12d
	movq	8(%rdx), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bfd_octets_per_byte
	movl	%eax, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	addq	%rax, %r14
	movl	(%r15), %esi
	leaq	(,%r12,4), %r15
	addq	%r13, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_srec_write_record
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addl	%ebx, %r12d
	movl	%r12d, %ebx
	movq	%r15, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Chunk,4,2                      ## @Chunk
	.comm	_MAXCHUNK,4,2                   ## @MAXCHUNK
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_srec_write_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srec_write_section
_srec_write_section:                    ; @srec_write_section
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2, #16]
Lloh0:
	adrp	x24, _Chunk@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Chunk@GOTPAGEOFF]
	ldr	w9, [x24]
	cbz	w9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MAXCHUNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAXCHUNK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w10, [x20]
	sub	w8, w8, w10
	sub	w8, w8, #2
	cmp	w9, w8
	b.gt	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w8, #1
LBB0_3:
	str	w8, [x24]
LBB0_4:
	mov	w26, #0
Lloh5:
	adrp	x25, _TRUE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _FALSE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	subs	w8, w8, w26
	b.ls	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x24]
	cmp	w8, w9
	csel	w28, w8, w9, lo
	ldr	x23, [x19, #8]
	mov	x0, x21
	bl	_bfd_octets_per_byte
	udiv	w8, w26, w0
	add	x2, x23, x8
	ldr	w1, [x20]
	add	x23, x22, w28, uxtw #2
	mov	x0, x21
	mov	x3, x22
	mov	x4, x23
	bl	_srec_write_record
	add	w26, w28, w26
	mov	x22, x23
	cbnz	w0, LBB0_5
; %bb.7:
	mov	x25, x27
LBB0_8:
	ldr	w0, [x25]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_Chunk,4,2                      ; @Chunk
	.comm	_MAXCHUNK,4,2                   ; @MAXCHUNK
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_srec_write_section
.subsections_via_symbols
