	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_thumb2_ldmstm
_encode_thumb2_ldmstm:                  ## @encode_thumb2_ldmstm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_inst@GOTPCREL(%rip), %r12
	movl	$1048576, %r13d                 ## imm = 0x100000
	andl	(%r12), %r13d
	testl	$8192, %esi                     ## imm = 0x2000
	jne	LBB0_1
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_3
LBB0_8:
	testl	$32768, %ebx                    ## imm = 0x8000
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, 8(%r12)
LBB0_10:
	btl	%r14d, %ebx
	jae	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_as_warn
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, 8(%r12)
	testl	%r13d, %r13d
	je	LBB0_8
LBB0_3:
	movl	%ebx, %eax
	notl	%eax
	testl	$49152, %eax                    ## imm = 0xC000
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, 8(%r12)
LBB0_5:
	btl	%r14d, %ebx
	jae	LBB0_12
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_as_warn
LBB0_12:
	leal	-1(%rbx), %eax
	testl	%eax, %ebx
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	testb	$-128, 2(%r12)
	sete	%al
	movl	$3076, %ecx                     ## imm = 0xC04
	movl	$8388608, %edx                  ## imm = 0x800000
	cmovel	%ecx, %edx
	shll	$9, %eax
	addl	$2820, %eax                     ## imm = 0xB04
	testl	%r15d, %r15d
	cmovel	%edx, %eax
	orl	%eax, %r13d
	orl	$-130023424, %r13d              ## imm = 0xF8400000
	bsfl	%ebx, %eax
	shll	$12, %eax
	testl	%ebx, %ebx
	movl	$-4096, %ebx                    ## imm = 0xF000
	cmovnel	%eax, %ebx
	jmp	LBB0_17
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.16:
	movq	_WRITE_BACK@GOTPCREL(%rip), %rax
	movl	(%r12), %r13d
	orl	(%rax), %r13d
	jmp	LBB0_17
LBB0_15:
	movl	(%r12), %r13d
LBB0_17:
	shll	$16, %r14d
	orl	%r13d, %r14d
	orl	%ebx, %r14d
	movl	%r14d, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inst,16,3                      ## @inst
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SP not allowed in register list"

L_.str.1:                               ## @.str.1
	.asciz	"LR and PC should not both be in register list"

L_.str.2:                               ## @.str.2
	.asciz	"base register should not be in register list when written back"

L_.str.3:                               ## @.str.3
	.asciz	"PC not allowed in register list"

L_.str.4:                               ## @.str.4
	.asciz	"value stored for r%d is UNPREDICTABLE"

	.comm	_WRITE_BACK,4,2                 ## @WRITE_BACK
	.no_dead_strip	_encode_thumb2_ldmstm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_thumb2_ldmstm
_encode_thumb2_ldmstm:                  ; @encode_thumb2_ldmstm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _inst@GOTPAGE
Lloh1:
	ldr	x22, [x22, _inst@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w23, w8, #0x100000
	tbnz	w1, #13, LBB0_6
; %bb.1:
	cbnz	w23, LBB0_7
LBB0_2:
	tbz	w19, #15, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	str	x0, [x22, #8]
LBB0_4:
	lsr	w8, w19, w20
	tbz	w8, #0, LBB0_13
; %bb.5:
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	str	x20, [sp]
	b	LBB0_12
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	str	x0, [x22, #8]
	cbz	w23, LBB0_2
LBB0_7:
	mvn	w8, w19
	tst	w8, #0xc000
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	str	x0, [x22, #8]
LBB0_9:
	lsr	w8, w19, w20
	tbz	w8, #0, LBB0_13
; %bb.10:
	cbz	w21, LBB0_13
; %bb.11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
LBB0_12:
	bl	_as_warn
LBB0_13:
	sub	w8, w19, #1
	tst	w19, w8
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [x22]
	tst	w8, #0x800000
	mov	w8, #2820
	mov	w9, #3332
	csel	w8, w9, w8, eq
	mov	w9, #8388608
	mov	w10, #3076
	csel	w9, w10, w9, eq
	cmp	w21, #0
	csel	w8, w9, w8, eq
	orr	w8, w23, w8
	mov	w9, #-130023424
	orr	w8, w8, w9
	rbit	w9, w19
	clz	w9, w9
	lsl	w9, w9, #12
	mov	w10, #-4096
	cmp	w19, #0
	csel	w19, w10, w9, eq
	b	LBB0_18
LBB0_15:
	cbz	w21, LBB0_17
; %bb.16:
Lloh12:
	adrp	x8, _WRITE_BACK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WRITE_BACK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	b	LBB0_18
LBB0_17:
	ldr	w8, [x22]
LBB0_18:
	orr	w9, w19, w20, lsl #16
	orr	w8, w9, w8
	str	w8, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_inst,16,3                      ; @inst
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SP not allowed in register list"

l_.str.1:                               ; @.str.1
	.asciz	"LR and PC should not both be in register list"

l_.str.2:                               ; @.str.2
	.asciz	"base register should not be in register list when written back"

l_.str.3:                               ; @.str.3
	.asciz	"PC not allowed in register list"

l_.str.4:                               ; @.str.4
	.asciz	"value stored for r%d is UNPREDICTABLE"

	.comm	_WRITE_BACK,4,2                 ; @WRITE_BACK
	.no_dead_strip	_encode_thumb2_ldmstm
.subsections_via_symbols
