	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrp_lmem_load
_wrp_lmem_load:                         ## @wrp_lmem_load
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r12d
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 40(%rbp)
	setne	%r14b
	cmpl	$0, 16(%rbp)
	setne	%bl
	cmpl	$0, 24(%rbp)
	sete	%r13b
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leal	(%r15,%rdx), %eax
	movl	$1, %edi
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.1:
	leal	3(%r12), %eax
	testl	%r12d, %r12d
	cmovnsl	%r12d, %eax
	andl	$-4, %eax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	addl	%r15d, %ecx
	xorl	%edi, %edi
	cmpl	$5, %ecx
	setae	%dil
LBB0_2:
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	andb	%r14b, %bl
	andb	%bl, %r13b
	movl	32(%rbp), %eax
	leal	3(%r12), %r14d
	testl	%r12d, %r12d
	cmovnsl	%r12d, %r14d
	movl	%r14d, %ebx
	sarl	$2, %ebx
	cmpl	$4, %r15d
	jne	LBB0_9
## %bb.5:
	movl	%eax, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_reg_both
	movl	%eax, %r14d
	testb	%r13b, %r13b
	je	LBB0_7
## %bb.6:
	movl	$3, %edi
	callq	_reg_lm_inc
	jmp	LBB0_8
LBB0_9:
	movb	%r13b, -41(%rbp)                ## 1-byte Spill
	testl	%eax, %eax
	setne	%al
	movq	_RE_REG_LM_IDX_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	seta	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.10:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ecx
	movl	$-1, %ebx
	shll	%cl, %ebx
	notl	%ebx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %ecx
	shll	%cl, %ebx
	xorl	%edi, %edi
	cmpl	$16, %ebx
	setae	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.11:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	andl	$-4, %r14d
	subl	%r14d, %r12d
	movl	%r12d, %eax
	subl	%r13d, %eax
	movq	_SHF_SC_R_SHF@GOTPCREL(%rip), %rcx
	cmovbq	_SHF_SC_L_SHF@GOTPCREL(%rip), %rcx
	cmoveq	_SHF_SC_NONE@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	negl	%edx
	cmovsl	%eax, %edx
	shll	$3, %edx
	movl	$32, %r15d
	subl	%edx, %r15d
	cmpl	%r13d, %r12d
	cmovael	%edx, %r15d
	cmovel	%edx, %r15d
	movl	(%rcx), %r13d
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movq	_RE_REG_LM_IDX_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jbe	LBB0_12
## %bb.13:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_imm_a
	movl	%eax, %r14d
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:
	cmpl	$0, 16(%rbp)
	jne	LBB0_16
LBB0_15:
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_reg_lm
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_wrp_mov
	jmp	LBB0_16
LBB0_7:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	leal	(%rax,%rax,2), %edi
	movl	%ebx, %esi
	callq	_reg_lm
LBB0_8:
	movl	%eax, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_wrp_mov
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_12:
	xorl	%eax, %eax
	cmpl	$0, 32(%rbp)
	setne	%al
	leal	(%rax,%rax,2), %edi
	movl	%ebx, %esi
	callq	_reg_lm
	movl	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_16:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_reg_both
	movl	16(%rbp), %ecx
	movl	%ecx, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_emit_ld_field_any
	xorl	%ebx, %ebx
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
## %bb.17:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_reg_none
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_reg_lm_inc
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_wrp_mov
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_RE_REG_LM_IDX_MAX,4,2          ## @RE_REG_LM_IDX_MAX
	.comm	_SHF_SC_NONE,4,2                ## @SHF_SC_NONE
	.comm	_SHF_SC_L_SHF,4,2               ## @SHF_SC_L_SHF
	.comm	_SHF_SC_R_SHF,4,2               ## @SHF_SC_R_SHF
	.no_dead_strip	_wrp_lmem_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrp_lmem_load
_wrp_lmem_load:                         ; @wrp_lmem_load
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x22, x5
	mov	x24, x4
	mov	x26, x3
	mov	x25, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x29, #20]
	cmp	w6, #0
	ccmp	w8, #0, #4, ne
	ccmp	w7, #0, #0, ne
	cset	w28, eq
	add	w8, w4, w2
	mov	w9, #1
	negs	w10, w3
	and	w10, w10, #0x3
	and	w11, w3, #0x3
	csneg	w10, w11, w10, mi
	add	w10, w10, w4
	cmp	w10, #4
	cset	w10, hi
	cmp	w8, #4
	csel	w0, w9, w10, hi
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_2:
	ldr	w27, [x29, #16]
	add	w8, w26, #3
	cmp	w26, #0
	csel	w8, w8, w26, lt
	asr	w23, w8, #2
	cmp	w24, #4
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_reg_both
	mov	x20, x0
	cbz	w28, LBB0_11
LBB0_4:
	mov	w0, #3
	bl	_reg_lm_inc
	b	LBB0_12
LBB0_5:
	cmp	w27, #0
Lloh3:
	adrp	x8, _RE_REG_LM_IDX_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RE_REG_LM_IDX_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w23, w8, #0, ne
	cset	w0, hi
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_1
; %bb.6:
	mov	w8, #-1
	lsl	w8, w8, w24
	mvn	w8, w8
	lsl	w24, w8, w25
	cmp	w24, #15
	cset	w0, hi
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_1
; %bb.7:
	sub	w8, w26, w23, lsl #2
	subs	w9, w8, w25
Lloh6:
	adrp	x10, _SHF_SC_NONE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SHF_SC_NONE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _SHF_SC_L_SHF@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SHF_SC_L_SHF@GOTPAGEOFF]
Lloh10:
	adrp	x12, _SHF_SC_R_SHF@GOTPAGE
Lloh11:
	ldr	x12, [x12, _SHF_SC_R_SHF@GOTPAGEOFF]
	csel	x11, x11, x12, lo
	csel	x10, x10, x11, eq
	cneg	w9, w9, mi
	lsl	w9, w9, #3
	mov	w11, #32
	sub	w11, w11, w9
	cmp	w8, w25
	csel	w8, w11, w9, lo
	csel	w25, w9, w8, eq
	ldr	w26, [x10]
Lloh12:
	adrp	x8, _RE_REG_LM_IDX_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RE_REG_LM_IDX_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ls	LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_imm_a
	mov	x27, x0
	cbnz	w22, LBB0_10
; %bb.9:
	cbnz	w20, LBB0_16
LBB0_10:
	mov	w0, #0
	mov	x1, x23
	bl	_reg_lm
	mov	x2, x0
	mov	x0, x19
	mov	x1, x27
	bl	_wrp_mov
	b	LBB0_16
LBB0_11:
	mov	w8, #3
	cmp	w27, #0
	csel	w0, wzr, w8, eq
	mov	x1, x23
	bl	_reg_lm
LBB0_12:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_wrp_mov
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w8, #3
	cmp	w27, #0
	csel	w0, w8, wzr, ne
	mov	x1, x23
	bl	_reg_lm
	mov	x27, x0
LBB0_16:
	mov	x0, x21
	bl	_reg_both
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	mov	x3, x27
	mov	x4, x26
	mov	x5, x25
	mov	x6, x20
	bl	_emit_ld_field_any
	cbz	w28, LBB0_13
; %bb.17:
	bl	_reg_none
	mov	x20, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_RE_REG_LM_IDX_MAX,4,2          ; @RE_REG_LM_IDX_MAX
	.comm	_SHF_SC_NONE,4,2                ; @SHF_SC_NONE
	.comm	_SHF_SC_L_SHF,4,2               ; @SHF_SC_L_SHF
	.comm	_SHF_SC_R_SHF,4,2               ; @SHF_SC_R_SHF
	.no_dead_strip	_wrp_lmem_load
.subsections_via_symbols
