	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_andimm                    ## -- Begin function emit_andimm
	.p2align	4, 0x90
_emit_andimm:                           ## @emit_andimm
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	testl	%esi, %esi
	je	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	leaq	-36(%rbp), %rsi
	movl	%ebx, %edi
	callq	_genimm
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r15
	movl	(%rax,%r15,4), %esi
	movslq	%r14d, %r14
	movl	(%rax,%r14,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	orl	-36(%rbp), %eax
	orl	$-503316480, %eax               ## imm = 0xE2000000
	jmp	LBB0_8
LBB0_9:
	movl	%r15d, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_zeroreg                   ## TAILCALL
LBB0_3:
	movl	%ebx, %edi
	notl	%edi
	leaq	-36(%rbp), %rsi
	callq	_genimm
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	orl	-36(%rbp), %eax
	orl	$-473956352, %eax               ## imm = 0xE3C00000
	jmp	LBB0_8
LBB0_5:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jne	LBB0_7
## %bb.6:
	movq	_regname@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%r15d, %rbx
	movl	(%rax,%rbx,4), %esi
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	orl	$-473955073, %eax               ## imm = 0xE3C004FF
	movl	%eax, %edi
	callq	_output_w32
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r15d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	orl	$-473954049, %eax               ## imm = 0xE3C008FF
	jmp	LBB0_8
LBB0_7:
	leal	-1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$65534, %eax                    ## imm = 0xFFFE
	setb	%dil
	callq	_assert
	movl	%ebx, %esi
	andl	$65280, %esi                    ## imm = 0xFF00
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_assem_debug
	movq	_HOST_TEMPREG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %edx
	sarl	$8, %edx
	xorl	%esi, %esi
	movl	$8, %ecx
	callq	_rd_rn_imm_shift
	orl	$-476053504, %eax               ## imm = 0xE3A00000
	movl	%eax, %edi
	callq	_output_w32
	movzbl	%bl, %ebx
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	(%r12), %edi
	movl	%edi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rd_rn_imm_shift
	orl	$-494927872, %eax               ## imm = 0xE2800000
	movl	%eax, %edi
	callq	_output_w32
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	(%r12), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_rd_rn_rm
	orl	$-536870912, %eax               ## imm = 0xE0000000
LBB0_8:
	movl	%eax, %edi
	callq	_output_w32
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"and %s,%s,#%d\n"

	.comm	_regname,8,3                    ## @regname
L_.str.1:                               ## @.str.1
	.asciz	"bic %s,%s,#%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"bic %s,%s,#FF000000\n"

L_.str.3:                               ## @.str.3
	.asciz	"bic %s,%s,#00FF0000\n"

L_.str.4:                               ## @.str.4
	.asciz	"mov r14,#%d\n"

	.comm	_HOST_TEMPREG,4,2               ## @HOST_TEMPREG
L_.str.5:                               ## @.str.5
	.asciz	"add r14,r14,#%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"and %s,%s,r14\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_andimm                    ; -- Begin function emit_andimm
	.p2align	2
_emit_andimm:                           ; @emit_andimm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	cbz	w1, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	add	x1, sp, #28
	mov	x0, x21
	bl	_genimm
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _regname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
	ldr	w8, [x8, w20, sxtw #2]
	stp	x8, x21, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assem_debug
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_rd_rn_rm
	ldr	w8, [sp, #28]
	orr	w8, w0, w8
	mov	w9, #-503316480
	orr	w0, w8, w9
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_emit_zeroreg
LBB0_4:
	mvn	w0, w21
	add	x1, sp, #28
	bl	_genimm
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _regname@GOTPAGE
Lloh6:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
	ldr	w8, [x8, w20, sxtw #2]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x8, x21, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_assem_debug
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_rd_rn_rm
	ldr	w8, [sp, #28]
	orr	w8, w0, w8
	mov	w9, #-476053504
	add	w9, w9, #512, lsl #12           ; =2097152
	orr	w0, w8, w9
	b	LBB0_9
LBB0_6:
	mov	w8, #65535
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.7:
Lloh10:
	adrp	x21, _regname@GOTPAGE
Lloh11:
	ldr	x21, [x21, _regname@GOTPAGEOFF]
	ldr	x8, [x21]
	sbfiz	x22, x19, #2, #32
	ldr	w1, [x8, x22]
	ldr	w8, [x8, w20, sxtw #2]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_assem_debug
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_rd_rn_rm
	mov	w20, #1279
	movk	w20, #58304, lsl #16
	orr	w0, w0, w20
	bl	_output_w32
	ldr	x8, [x21]
	ldr	w1, [x8, x22]
	str	x1, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_assem_debug
	mov	x0, x19
	mov	x1, x19
	mov	w2, #0
	bl	_rd_rn_rm
	add	w8, w20, #1024
	orr	w0, w0, w8
	b	LBB0_9
LBB0_8:
	sub	w8, w21, #1
	mov	w9, #65534
	cmp	w8, w9
	cset	w0, lo
	bl	_assert
	and	w1, w21, #0xff00
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_assem_debug
Lloh18:
	adrp	x22, _HOST_TEMPREG@GOTPAGE
Lloh19:
	ldr	x22, [x22, _HOST_TEMPREG@GOTPAGEOFF]
	ldr	w0, [x22]
	asr	w2, w21, #8
	mov	w1, #0
	mov	w3, #8
	bl	_rd_rn_imm_shift
	mov	w8, #-476053504
	orr	w0, w0, w8
	bl	_output_w32
	and	w21, w21, #0xff
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x21
	bl	_assem_debug
	ldr	w0, [x22]
	mov	x1, x0
	mov	x2, x21
	mov	w3, #0
	bl	_rd_rn_imm_shift
	mov	w8, #-503316480
	orr	w8, w0, w8
	orr	w0, w8, #0x800000
	bl	_output_w32
Lloh22:
	adrp	x8, _regname@GOTPAGE
Lloh23:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
	ldr	w8, [x8, w20, sxtw #2]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_assem_debug
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_rd_rn_rm
	orr	w0, w0, #0xe0000000
LBB0_9:
	bl	_output_w32
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"and %s,%s,#%d\n"

	.comm	_regname,8,3                    ; @regname
l_.str.1:                               ; @.str.1
	.asciz	"bic %s,%s,#%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"bic %s,%s,#FF000000\n"

l_.str.3:                               ; @.str.3
	.asciz	"bic %s,%s,#00FF0000\n"

l_.str.4:                               ; @.str.4
	.asciz	"mov r14,#%d\n"

	.comm	_HOST_TEMPREG,4,2               ; @HOST_TEMPREG
l_.str.5:                               ; @.str.5
	.asciz	"add r14,r14,#%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"and %s,%s,r14\n"

.subsections_via_symbols
