	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___bsd_iconvctl                 ## -- Begin function __bsd_iconvctl
	.p2align	4, 0x90
___bsd_iconvctl:                        ## @__bsd_iconvctl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_ISBADF
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBADF@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addl	$-128, %ebx
	cmpl	$8, %ebx
	ja	LBB0_16
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r13
	movq	%rax, %r12
	subq	%r15, %r12
	incq	%r13
	movq	%r13, %rdi
	callq	_strlen
	xorl	%ebx, %ebx
	movl	$0, %ecx
	cmpq	%rax, %r12
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_memcmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_6:
	movl	%ecx, (%r14)
	jmp	LBB0_18
LBB0_15:
	movl	(%r14), %eax
	movq	(%r15), %rcx
	movl	%eax, 12(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_12:
	movq	(%r15), %rax
	movq	%r14, 16(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_13:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 12(%rax)
	jmp	LBB0_10
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	xorl	%ebx, %ebx
	cmpl	$1, (%r14)
	setne	%bl
	negl	%ebx
	jmp	LBB0_18
LBB0_11:
	movl	(%r14), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_7:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_9:
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rax)
LBB0_10:
	setne	%cl
	movl	%ecx, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___bsd_iconvctl                 ; -- Begin function __bsd_iconvctl
	.p2align	2
___bsd_iconvctl:                        ; @__bsd_iconvctl
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_ISBADF
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EBADF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _errno@GOTPAGE
Lloh3:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	mov	w0, #-1
LBB0_3:
	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_4:
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_12
; %bb.5:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x8, [x20]
	ldr	x20, [x8]
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	sub	x21, x0, x20
	add	x22, x0, #1
	mov	x0, x22
	bl	_strlen
	cmp	x21, x0
	b.ne	LBB0_18
; %bb.7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_memcmp
	cmp	w0, #0
	cset	w8, eq
	b	LBB0_19
LBB0_8:
	mov	w0, #0
	ldr	w8, [x19]
	ldr	x9, [x20]
	str	w8, [x9, #12]
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	ldr	x8, [x20]
	str	x19, [x8, #16]
	b	LBB0_3
LBB0_10:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	b	LBB0_17
LBB0_12:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	ldr	w8, [x19]
	cmp	w8, #1
	csetm	w0, ne
	b	LBB0_3
LBB0_14:
	mov	w0, #0
	ldr	w8, [x19]
	ldr	x9, [x20]
	str	w8, [x9, #8]
	b	LBB0_3
LBB0_15:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_16:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
LBB0_17:
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19]
	b	LBB0_3
LBB0_18:
	mov	w8, #0
LBB0_19:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
