	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_category                  ## -- Begin function copy_category
	.p2align	4, 0x90
_copy_category:                         ## @copy_category
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%eax, %eax
	callq	_category_name
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_snprintf
	movq	_R_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_access
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_category_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_snprintf
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_access
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	jmp	LBB0_12
LBB0_4:
	movq	_verbose@GOTPCREL(%rip), %rbx
	cmpl	$2, (%rbx)
	jl	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_category_name
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_6:
	movq	_bsd@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_category_file
	movl	%eax, %edi
	callq	_dirname
	movl	%eax, %edi
	movl	$493, %esi                      ## imm = 0x1ED
	callq	_mkdir
LBB0_8:
	xorl	%eax, %eax
	callq	_category_file
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_link
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	jmp	LBB0_12
LBB0_10:
	cmpl	$2, (%rbx)
	jl	LBB0_12
## %bb.11:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_R_OK,4,2                       ## @R_OK
L_.str.1:                               ## @.str.1
	.asciz	"/usr/lib/locale/%s/%s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"source locale data unavailable: %s"

	.comm	_verbose,4,2                    ## @verbose
L_.str.3:                               ## @.str.3
	.asciz	"Copying category %s from %s: "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_bsd,4,2                        ## @bsd
L_.str.4:                               ## @.str.4
	.asciz	"unable to copy locale data: %s"

	.comm	_errno,4,2                      ## @errno
L_str:                                  ## @str
	.asciz	"done."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_category                  ; -- Begin function copy_category
	.p2align	2
_copy_category:                         ; @copy_category
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	bl	_category_name
	mov	x4, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_snprintf
Lloh10:
	adrp	x22, _R_OK@GOTPAGE
Lloh11:
	ldr	x22, [x22, _R_OK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_access
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_3
; %bb.2:
	bl	_category_name
	mov	x4, x0
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_snprintf
	ldr	w1, [x22]
	mov	x0, x19
	bl	_access
	cbz	w0, LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	b	LBB0_12
LBB0_4:
Lloh19:
	adrp	x21, _verbose@GOTPAGE
Lloh20:
	ldr	x21, [x21, _verbose@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	bl	_category_name
	stp	x0, x20, [sp, #-16]!
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
Lloh23:
	adrp	x8, _stdout@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_fflush
LBB0_6:
Lloh26:
	adrp	x8, _bsd@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bsd@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.7:
	bl	_category_file
	bl	_dirname
	mov	w1, #493
	bl	_mkdir
LBB0_8:
	bl	_category_file
	mov	x1, x0
	mov	x0, x19
	bl	_link
	cbz	x0, LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	b	LBB0_12
LBB0_10:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.11:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #32
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_R_OK,4,2                       ; @R_OK
l_.str.1:                               ; @.str.1
	.asciz	"/usr/lib/locale/%s/%s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"source locale data unavailable: %s"

	.comm	_verbose,4,2                    ; @verbose
l_.str.3:                               ; @.str.3
	.asciz	"Copying category %s from %s: "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_bsd,4,2                        ; @bsd
l_.str.4:                               ; @.str.4
	.asciz	"unable to copy locale data: %s"

	.comm	_errno,4,2                      ; @errno
l_str:                                  ; @str
	.asciz	"done."

.subsections_via_symbols
