	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kiconv_add_xlat_table          ## -- Begin function kiconv_add_xlat_table
	.p2align	4, 0x90
_kiconv_add_xlat_table:                 ## @kiconv_add_xlat_table
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_strlen
	movq	_ICONV_CSNMAXLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %rax
	jge	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%rbx, %rax
	jge	LBB0_2
## %bb.3:
	movq	_ICONV_ADD_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	%r12, %rsi
	callq	_strcpy
	movq	%r15, %rsi
	callq	_strcpy
	movq	%r14, -72(%rbp)
	movl	$256, -80(%rbp)                 ## imm = 0x100
	movq	$4, -40(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movl	$32, %r8d
	callq	_sysctlbyname
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICONV_CSNMAXLEN,8,3            ## @ICONV_CSNMAXLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICONV_ADD_VER,4,2              ## @ICONV_ADD_VER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xlat"

L_.str.1:                               ## @.str.1
	.asciz	"kern.iconv.add"

	.comm	_errno,4,2                      ## @errno
	.comm	_eff_uid,4,2                    ## @eff_uid
	.comm	_real_uid,4,2                   ## @real_uid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kiconv_add_xlat_table          ; -- Begin function kiconv_add_xlat_table
	.p2align	2
_kiconv_add_xlat_table:                 ; @kiconv_add_xlat_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _ICONV_CSNMAXLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICONV_CSNMAXLEN@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cmp	x0, x22
	b.ge	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_strlen
	cmp	x0, x22
	b.ge	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ICONV_ADD_VER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICONV_ADD_VER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #44]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x1, x21
	bl	_strcpy
	mov	x1, x20
	bl	_strcpy
	str	x19, [sp, #24]
	mov	w8, #256
	str	w8, [sp, #16]
	mov	w8, #4
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x2, sp
	add	x3, sp, #16
	mov	w4, #32
	bl	_sysctlbyname
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w0, w8, wzr, eq
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ICONV_CSNMAXLEN,8,3            ; @ICONV_CSNMAXLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICONV_ADD_VER,4,2              ; @ICONV_ADD_VER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xlat"

l_.str.1:                               ; @.str.1
	.asciz	"kern.iconv.add"

	.comm	_errno,4,2                      ; @errno
	.comm	_eff_uid,4,2                    ; @eff_uid
	.comm	_real_uid,4,2                   ; @real_uid
.subsections_via_symbols
