	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function straight_ctx_add_wl
_straight_ctx_add_wl:                   ## @straight_ctx_add_wl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_hc_path_has_bom
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_event_log_error
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movq	(%rbx), %rbx
	movl	(%rbx), %esi
	cmpl	4(%rbx), %esi
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	shll	$3, %esi
	movq	_INCR_DICTS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	shll	$3, %edx
	callq	_hcrealloc
	movq	%rax, 8(%rbx)
	movl	(%r15), %eax
	addl	%eax, (%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_hcstrdup
	movq	8(%rbx), %rcx
	movslq	4(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	leal	1(%rdx), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Byte Order Mark (BOM) was detected"

	.comm	_INCR_DICTS,4,2                 ## @INCR_DICTS
	.no_dead_strip	_straight_ctx_add_wl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function straight_ctx_add_wl
_straight_ctx_add_wl:                   ; @straight_ctx_add_wl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_hc_path_has_bom
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_event_log_error
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	ldr	x20, [x20]
	ldp	w8, w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
	lsl	w1, w8, #3
Lloh2:
	adrp	x21, _INCR_DICTS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _INCR_DICTS@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w2, w8, #3
	bl	_hcrealloc
	str	x0, [x20, #8]
	ldr	w8, [x21]
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_hcstrdup
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20, #8]
	ldrsw	x10, [x20, #4]
	str	x8, [x9, x10, lsl #3]
	add	w8, w10, #1
	str	w8, [x20, #4]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Byte Order Mark (BOM) was detected"

	.comm	_INCR_DICTS,4,2                 ; @INCR_DICTS
	.no_dead_strip	_straight_ctx_add_wl
.subsections_via_symbols
