	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ihex_write_record
_ihex_write_record:                     ## @ihex_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
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	addl	$13, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movb	$58, (%rdi)
	movl	%r15d, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	leaq	_ihex_write_record.digs(%rip), %r8
	movb	(%rcx,%r8), %cl
	movb	%cl, 1(%rdi)
	movl	%r15d, %ecx
	andl	$15, %ecx
	movb	(%rcx,%r8), %cl
	movb	%cl, 2(%rdi)
	movl	%r14d, %ecx
	shrl	$8, %ecx
	movl	%r14d, %edx
	shrl	$12, %edx
	andl	$15, %edx
	movb	(%rdx,%r8), %dl
	movb	%dl, 3(%rdi)
	movl	%r14d, %edx
	movl	%r14d, %esi
	addl	%r15d, %r14d
	addl	%ecx, %r14d
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	andl	$15, %ecx
	movb	(%rcx,%r8), %cl
	movb	%cl, 4(%rdi)
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rdx,%r8), %cl
	movb	%cl, 5(%rdi)
	andl	$15, %esi
	movb	(%rsi,%r8), %cl
	movb	%cl, 6(%rdi)
	movl	%r13d, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	movb	(%rcx,%r8), %cl
	movb	%cl, 7(%rdi)
	movl	%r13d, %ecx
	andl	$15, %ecx
	movb	(%rcx,%r8), %cl
	movb	%cl, 8(%rdi)
	addl	%r13d, %r14d
	movq	%rdi, %rcx
	addq	$9, %rcx
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rdx,4), %eax
	movl	%eax, %esi
	shrl	$4, %esi
	andl	$15, %esi
	movzbl	(%rsi,%r8), %ebx
	movb	%bl, (%rcx)
	addl	%eax, %r14d
	andl	$15, %eax
	movzbl	(%rax,%r8), %eax
	movb	%al, 1(%rcx)
	incq	%rdx
	addq	$2, %rcx
	movl	%edx, %eax
	cmpq	%r15, %rax
	jb	LBB0_2
LBB0_3:
	negl	%r14d
	movl	%r14d, %eax
	shrl	$4, %eax
	andl	$15, %eax
	movb	(%rax,%r8), %al
	movb	%al, (%rcx)
	andl	$15, %r14d
	movb	(%r14,%r8), %al
	movb	%al, 1(%rcx)
	movw	$2573, 2(%rcx)                  ## imm = 0xA0D
	leaq	(%r15,%r15), %rbx
	addq	$13, %rbx
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_bfd_bwrite
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @ihex_write_record.digs
_ihex_write_record.digs:
	.asciz	"0123456789ABCDEF"

	.comm	_CHUNK,4,2                      ## @CHUNK
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ihex_write_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ihex_write_record
_ihex_write_record:                     ; @ihex_write_record
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x8, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-24]
Lloh3:
	adrp	x9, _CHUNK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHUNK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w9, #1
	add	w12, w9, #13
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x1fffffff0
	sub	x0, x9, x10
	mov	sp, x0
	mov	w9, #58
	strb	w9, [x0]
Lloh8:
	adrp	x9, _ihex_write_record.digs@PAGE
Lloh9:
	add	x9, x9, _ihex_write_record.digs@PAGEOFF
	ubfx	x10, x1, #4, #4
	ldrb	w10, [x9, x10]
	and	x11, x1, #0xf
	ldrb	w11, [x9, x11]
	strb	w10, [x0, #1]
	strb	w11, [x0, #2]
	ubfx	x10, x2, #12, #4
	ldrb	w10, [x9, x10]
	strb	w10, [x0, #3]
	ubfx	x10, x2, #8, #4
	ldrb	w10, [x9, x10]
	ubfx	x11, x2, #4, #4
	ldrb	w11, [x9, x11]
	strb	w10, [x0, #4]
	strb	w11, [x0, #5]
	and	x10, x2, #0xf
	ldrb	w10, [x9, x10]
	strb	w10, [x0, #6]
	ubfx	x10, x3, #4, #4
	ldrb	w10, [x9, x10]
	strb	w10, [x0, #7]
	add	w10, w1, w2
	add	w10, w10, w2, lsr #8
	and	x11, x3, #0xf
	ldrb	w12, [x9, x11]
	add	w11, w10, w3
	add	x10, x0, #9
	strb	w12, [x0, #8]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x12, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x4, x12, lsl #2]
	ubfx	x14, x13, #4, #4
	ldrb	w14, [x9, x14]
	and	x15, x13, #0xf
	ldrb	w15, [x9, x15]
	strb	w14, [x10]
	strb	w15, [x10, #1]
	add	w11, w13, w11
	add	x12, x12, #1
	add	x10, x10, #2
	cmp	x1, w12, uxtw
	b.hi	LBB0_2
LBB0_3:
	neg	w11, w11
	ubfx	x12, x11, #4, #4
	ldrb	w12, [x9, x12]
	and	x11, x11, #0xf
	ldrb	w9, [x9, x11]
	strb	w12, [x10]
	strb	w9, [x10, #1]
	mov	w9, #2573
	strh	w9, [x10, #2]
	lsl	x9, x1, #1
	add	x19, x9, #13
	mov	x1, x19
	mov	x2, x8
	bl	_bfd_bwrite
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _FALSE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	cmp	x0, x19
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_ihex_write_record.digs:                ; @ihex_write_record.digs
	.asciz	"0123456789ABCDEF"

	.comm	_CHUNK,4,2                      ; @CHUNK
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ihex_write_record
.subsections_via_symbols
