	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l3dss1_get_cause
_l3dss1_get_cause:                      ## @l3dss1_get_cause
	.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
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	$31, (%rbx)
	movl	8(%rsi), %esi
	movq	_IE_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_findie
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %edx
	movl	$1, %ecx
	cmpl	$30, %edx
	jg	LBB0_16
## %bb.3:
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	movl	8(%rax), %edi
	movl	%edi, 4(%rbx)
	movl	%edx, %esi
	movl	$4, %ecx
	decl	%esi
	je	LBB0_16
## %bb.6:
	addl	$-2, %edx
	testb	$-128, %dil
	cmovel	%edx, %esi
	testl	%esi, %esi
	je	LBB0_16
## %bb.7:
	andl	$128, %edi
	xorl	%edx, %edx
	cmpl	$1, %edi
	adcq	$3, %rdx
	movl	(%rax,%rdx,4), %edi
	movl	%edi, (%rbx)
	movl	$3, %ecx
	testb	$-128, %dil
	je	LBB0_16
## %bb.8:
	cmpl	$1, %esi
	je	LBB0_15
## %bb.9:
	addl	$-2, %esi
	cmpl	$5, %esi
	movl	$5, %edi
	cmovbl	%esi, %edi
	movq	8(%rbx), %rcx
	movl	4(%rax,%rdx,4), %esi
	movl	%esi, (%rcx)
	testl	%edi, %edi
	je	LBB0_15
## %bb.10:
	incl	%edi
	movl	8(%rax,%rdx,4), %esi
	movl	%esi, 4(%rcx)
	cmpl	$2, %edi
	je	LBB0_15
## %bb.11:
	movl	12(%rax,%rdx,4), %esi
	movl	%esi, 8(%rcx)
	cmpl	$3, %edi
	je	LBB0_15
## %bb.12:
	movl	16(%rax,%rdx,4), %esi
	movl	%esi, 12(%rcx)
	cmpl	$4, %edi
	je	LBB0_15
## %bb.13:
	movl	20(%rax,%rdx,4), %esi
	movl	%esi, 16(%rcx)
	cmpl	$5, %edi
	je	LBB0_15
## %bb.14:
	movl	24(%rax,%rdx,4), %eax
	movl	%eax, 20(%rcx)
LBB0_15:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_1:
	movl	$-1, %ecx
	jmp	LBB0_16
LBB0_4:
	movl	$2, %ecx
LBB0_16:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IE_CAUSE,4,2                   ## @IE_CAUSE
	.no_dead_strip	_l3dss1_get_cause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function l3dss1_get_cause
lCPI0_0:
	.long	31                              ; 0x1f
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_l3dss1_get_cause:                      ; @l3dss1_get_cause
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	w1, [x1, #8]
Lloh2:
	adrp	x8, _IE_CAUSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IE_CAUSE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_findie
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, #30
	b.le	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_18
LBB0_3:
	mov	w0, #-1
	b	LBB0_18
LBB0_4:
	cbz	w8, LBB0_10
; %bb.5:
	ldr	w9, [x0, #8]
	str	w9, [x19, #4]
	subs	w10, w8, #1
	b.eq	LBB0_9
; %bb.6:
	sub	w8, w8, #2
	tst	w9, #0x80
	csel	w10, w8, w10, eq
	cbz	w10, LBB0_9
; %bb.7:
	tst	w9, #0x80
	mov	w8, #12
	mov	w9, #16
	csel	x8, x9, x8, eq
	add	x8, x0, x8
	ldr	w9, [x8]
	str	w9, [x19]
	tbnz	w9, #7, LBB0_11
; %bb.8:
	mov	w0, #3
	b	LBB0_18
LBB0_9:
	mov	w0, #4
	b	LBB0_18
LBB0_10:
	mov	w0, #2
	b	LBB0_18
LBB0_11:
	cmp	w10, #1
	b.eq	LBB0_17
; %bb.12:
	ldr	x9, [x19, #8]
	sub	w10, w10, #2
	mov	w11, #5
	cmp	w10, #5
	csel	w10, w10, w11, lo
	ldr	w11, [x8, #4]
	str	w11, [x9]
	cbz	w10, LBB0_17
; %bb.13:
	add	w10, w10, #1
	ldr	w11, [x8, #8]
	str	w11, [x9, #4]
	cmp	w10, #2
	b.eq	LBB0_17
; %bb.14:
	ldr	w11, [x8, #12]
	str	w11, [x9, #8]
	cmp	w10, #3
	b.eq	LBB0_17
; %bb.15:
	ldr	w11, [x8, #16]
	str	w11, [x9, #12]
	cmp	w10, #4
	b.eq	LBB0_17
; %bb.16:
	ldr	w11, [x8, #20]
	str	w11, [x9, #16]
	cmp	w10, #5
	b.ne	LBB0_19
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	w0, #0
	ldr	w8, [x8, #24]
	str	w8, [x9, #20]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IE_CAUSE,4,2                   ; @IE_CAUSE
	.no_dead_strip	_l3dss1_get_cause
.subsections_via_symbols
