	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AMW0_get_u32
_AMW0_get_u32:                          ## @AMW0_get_u32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_AE_ERROR@GOTPCREL(%rip), %rbx
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_quirks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %eax
	leaq	-20(%rbp), %rsi
	cmpl	$3, %eax
	je	LBB0_12
## %bb.3:
	cmpl	$2, %eax
	je	LBB0_13
## %bb.4:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.5:
	movl	$123, %edi
	jmp	LBB0_14
LBB0_6:
	leaq	-20(%rbp), %rsi
	movl	$10, %edi
	callq	_ec_read
	testl	%eax, %eax
	jne	LBB0_20
## %bb.7:
	movl	-20(%rbp), %eax
	shrl	$7, %eax
	jmp	LBB0_18
LBB0_8:
	leaq	-20(%rbp), %rsi
	movl	$131, %edi
	callq	_ec_read
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	movl	-20(%rbp), %eax
	jmp	LBB0_19
LBB0_10:
	leaq	-20(%rbp), %rsi
	movl	$10, %edi
	callq	_ec_read
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	movl	-20(%rbp), %eax
	shrl	$4, %eax
	jmp	LBB0_18
LBB0_12:
	movl	$120, %edi
	jmp	LBB0_14
LBB0_13:
	movl	$113, %edi
LBB0_14:
	callq	_ec_read
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movl	-20(%rbp), %eax
	jmp	LBB0_18
LBB0_16:
	movl	$10, %edi
	callq	_ec_read
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movl	-20(%rbp), %eax
	shrl	$2, %eax
LBB0_18:
	andl	$1, %eax
LBB0_19:
	movl	%eax, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rbx
LBB0_20:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_quirks,8,3                     ## @quirks
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_AMW0_get_u32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AMW0_get_u32
_AMW0_get_u32:                          ; @AMW0_get_u32
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_16
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _quirks@GOTPAGE
Lloh3:
	ldr	x8, [x8, _quirks@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	add	x1, sp, #12
	cmp	w8, #3
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #2
	b.eq	LBB0_13
; %bb.4:
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.5:
	mov	w0, #123
	bl	_ec_read
	cbnz	w0, LBB0_16
	b	LBB0_14
LBB0_6:
	add	x1, sp, #12
	mov	w0, #10
	bl	_ec_read
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #7, #1
	b	LBB0_18
LBB0_8:
	add	x1, sp, #12
	mov	w0, #131
	bl	_ec_read
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w8, [sp, #12]
	b	LBB0_18
LBB0_10:
	add	x1, sp, #12
	mov	w0, #10
	bl	_ec_read
	cbnz	w0, LBB0_16
; %bb.11:
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #4, #1
	b	LBB0_18
LBB0_12:
	mov	w0, #120
	bl	_ec_read
	cbnz	w0, LBB0_16
	b	LBB0_14
LBB0_13:
	mov	w0, #113
	bl	_ec_read
	cbnz	w0, LBB0_16
LBB0_14:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x1
	b	LBB0_18
LBB0_15:
	mov	w0, #10
	bl	_ec_read
	cbz	w0, LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #2, #1
LBB0_18:
	str	w8, [x19]
Lloh7:
	adrp	x8, _AE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_quirks,8,3                     ; @quirks
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_AMW0_get_u32
.subsections_via_symbols
