	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sysdecode_abi_to_freebsd_errno ## -- Begin function sysdecode_abi_to_freebsd_errno
	.p2align	4, 0x90
_sysdecode_abi_to_freebsd_errno:        ## @sysdecode_abi_to_freebsd_errno
	.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
	addl	$-128, %edi
	cmpl	$5, %edi
	ja	LBB0_11
## %bb.1:
	movl	%esi, %r15d
	movl	$3, %eax
	btl	%edi, %eax
	jb	LBB0_6
## %bb.2:
	movl	$12, %eax
	btl	%edi, %eax
	jb	LBB0_12
## %bb.3:
	testl	%r15d, %r15d
	js	LBB0_11
## %bb.4:
	movq	_cloudabi_errno_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_nitems
	cmpl	%r15d, %eax
	jbe	LBB0_11
## %bb.5:
	movq	(%rbx), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %r15d
	jmp	LBB0_12
LBB0_6:
	movq	_linux_errtbl@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_nitems
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	%ebx, %eax
	cmpl	%r15d, (%rdi,%rax,4)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	callq	_nitems
	cmpl	%eax, %ebx
	jb	LBB0_8
LBB0_11:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ebx, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_linux_errtbl,8,3               ## @linux_errtbl
	.comm	_cloudabi_errno_table,8,3       ## @cloudabi_errno_table
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sysdecode_abi_to_freebsd_errno ; -- Begin function sysdecode_abi_to_freebsd_errno
	.p2align	2
_sysdecode_abi_to_freebsd_errno:        ; @sysdecode_abi_to_freebsd_errno
	.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	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x3
	b.ne	LBB0_6
; %bb.2:
	tst	w8, #0xc
	b.ne	LBB0_11
; %bb.3:
	tbnz	w19, #31, LBB0_10
; %bb.4:
Lloh0:
	adrp	x20, _cloudabi_errno_table@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cloudabi_errno_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, w19
	b.ls	LBB0_10
; %bb.5:
	ldr	x8, [x20]
	ldr	w19, [x8, w19, uxtw #2]
	b	LBB0_11
LBB0_6:
Lloh2:
	adrp	x20, _linux_errtbl@GOTPAGE
Lloh3:
	ldr	x20, [x20, _linux_errtbl@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cbz	w0, LBB0_10
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, w21, uxtw #2]
	cmp	w8, w19
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	bl	_nitems
	cmp	w21, w0
	b.lo	LBB0_8
LBB0_10:
Lloh4:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
LBB0_11:
	mov	x0, x19
	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_12:
	mov	x19, x21
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_linux_errtbl,8,3               ; @linux_errtbl
	.comm	_cloudabi_errno_table,8,3       ; @cloudabi_errno_table
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
