	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _BIG5_wcrtomb
__BIG5_wcrtomb:                         ## @_BIG5_wcrtomb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	$-1, %rax
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	testl	$32768, %esi                    ## imm = 0x8000
	jne	LBB0_4
## %bb.5:
	movb	%sil, (%rdi)
LBB0_6:
	popq	%rbp
	retq
LBB0_4:
	rolw	$8, %si
	movw	%si, (%rdi)
	movl	$2, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	__BIG5_wcrtomb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _BIG5_wcrtomb
__BIG5_wcrtomb:                         ; @_BIG5_wcrtomb
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	x0, #-1
	ret
LBB0_2:
	cbz	x0, LBB0_5
; %bb.3:
	tbnz	w1, #15, LBB0_6
; %bb.4:
	strb	w1, [x0]
LBB0_5:
	mov	w0, #1
	ret
LBB0_6:
	rev	w8, w1
	lsr	w8, w8, #16
	strh	w8, [x0]
	mov	w0, #2
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	__BIG5_wcrtomb
.subsections_via_symbols
