	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ean2ISBN
_ean2ISBN:                              ## @ean2ISBN
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	4(%r14), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hyphenate
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_weight_checkdig
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rbx
	addq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %edi
	decq	%rbx
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leal	48(%r15), %eax
	cmpl	$10, %r15d
	movzbl	%al, %eax
	movl	$88, %ecx
	cmovnel	%eax, %ecx
	movb	%cl, (%rbx)
LBB0_4:
	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	"978-"

	.no_dead_strip	_ean2ISBN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ean2ISBN
_ean2ISBN:                              ; @ean2ISBN
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	w2, #4
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.1:
	add	x1, x19, #4
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_hyphenate
	mov	x0, x19
	mov	w1, #10
	bl	_weight_checkdig
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	add	x19, x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x19, #-1]!
	bl	_isdigit
	cbz	w0, LBB0_2
; %bb.3:
	add	w8, w20, #48
	mov	w9, #88
	cmp	w20, #10
	csel	w8, w9, w8, eq
	strb	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"978-"

	.no_dead_strip	_ean2ISBN
.subsections_via_symbols
