	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function error_type_set
_error_type_set:                        ## @error_type_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$0, -12(%rbp)
	movl	%esi, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	leal	-1(%rax), %ecx
	testl	%ecx, %eax
	jne	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	testl	%esi, %esi
	js	LBB0_5
## %bb.3:
	leaq	-12(%rbp), %rdi
	callq	_einj_get_available_error_type
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	testl	%ebx, -12(%rbp)
	je	LBB0_1
LBB0_5:
	movq	_error_type@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_error_type,4,2                 ## @error_type
	.no_dead_strip	_error_type_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function error_type_set
_error_type_set:                        ; @error_type_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	wzr, [sp, #12]
	and	w8, w1, #0x7fffffff
	sub	w9, w8, #1
	tst	w8, w9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	tbnz	w1, #31, LBB0_4
; %bb.2:
	add	x0, sp, #12
	bl	_einj_get_available_error_type
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
	tst	w8, w19
	b.eq	LBB0_5
LBB0_4:
	mov	w0, #0
Lloh0:
	adrp	x8, _error_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _error_type@GOTPAGEOFF]
Lloh2:
	str	w19, [x8]
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_error_type,4,2                 ; @error_type
	.no_dead_strip	_error_type_set
.subsections_via_symbols
