	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_reg
_print_reg:                             ## @print_reg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_lh5801_insn_descs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_LH5801_IFMT_REG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$134, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$133, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_19
LBB0_4:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_19
LBB0_6:
	movq	%rsi, %r15
	movl	8(%rsi), %r12d
	shrl	$4, %r12d
	andl	$3, %r12d
	cmpl	$3, %r12d
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %r14
	jmp	LBB0_19
LBB0_8:
	movq	%rdi, %r14
	movl	%ebx, %edi
	callq	_LH5801_IFMT_RMODE
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.9:
	cmpl	$129, %eax
	je	LBB0_13
## %bb.10:
	cmpl	$132, %eax
	jne	LBB0_18
## %bb.11:
	leaq	L___const.print_reg.names(%rip), %rax
	movb	(%r12,%rax), %al
	movb	%al, (%r14)
	movb	$0, 1(%r14)
	jmp	LBB0_19
LBB0_12:
	leaq	L___const.print_reg.names(%rip), %rax
	movb	(%r12,%rax), %al
	movb	%al, (%r14)
	testb	$-126, %bl
	setne	%al
	shlb	$2, %al
	orb	$104, %al
	movb	%al, 1(%r14)
	movb	$0, 2(%r14)
	jmp	LBB0_19
LBB0_13:
	movq	_LH5801_IFMT_FD_MOD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.14:
	cmpl	$0, 12(%r15)
	movq	%r14, %rax
	je	LBB0_16
## %bb.15:
	leaq	1(%r14), %rax
	movb	$35, (%r14)
LBB0_16:
	movb	$40, (%rax)
	leaq	L___const.print_reg.names(%rip), %rcx
	movb	(%r12,%rcx), %cl
	movb	%cl, 1(%rax)
	movw	$41, 2(%rax)
	jmp	LBB0_19
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lh5801_insn_descs,8,3          ## @lh5801_insn_descs
	.section	__TEXT,__cstring,cstring_literals
L___const.print_reg.names:              ## @__const.print_reg.names
	.asciz	"xyu"

	.comm	_LH5801_IFMT_REG_MASK,4,2       ## @LH5801_IFMT_REG_MASK
L_.str:                                 ## @.str
	.asciz	"a"

L_.str.1:                               ## @.str.1
	.asciz	"s"

L_.str.2:                               ## @.str.2
	.asciz	"p"

L_.str.3:                               ## @.str.3
	.asciz	"invalid"

	.comm	_LH5801_IFMT_FD_MOD,4,2         ## @LH5801_IFMT_FD_MOD
	.no_dead_strip	_print_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_reg
_print_reg:                             ; @print_reg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _lh5801_insn_descs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lh5801_insn_descs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x1]
	ldr	w21, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _LH5801_IFMT_REG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LH5801_IFMT_REG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #134
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #133
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x19, l_.str.1@PAGE
Lloh7:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_4:
Lloh8:
	adrp	x19, l_.str@PAGE
Lloh9:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_18
LBB0_5:
Lloh10:
	adrp	x19, l_.str.2@PAGE
Lloh11:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_6:
	mov	x20, x1
	ldr	w8, [x1, #8]
	ubfx	x22, x8, #4, #2
	cmp	w22, #3
	b.ne	LBB0_8
; %bb.7:
Lloh12:
	adrp	x19, l_.str.3@PAGE
Lloh13:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_8:
	mov	x19, x0
	mov	x0, x21
	bl	_LH5801_IFMT_RMODE
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_12
; %bb.9:
	cmp	w0, #129
	b.eq	LBB0_13
; %bb.10:
	cmp	w0, #132
	b.ne	LBB0_17
; %bb.11:
Lloh14:
	adrp	x8, l___const.print_reg.names@PAGE
Lloh15:
	add	x8, x8, l___const.print_reg.names@PAGEOFF
	ldrb	w8, [x8, x22]
	strb	w8, [x19]
	strb	wzr, [x19, #1]
	b	LBB0_18
LBB0_12:
Lloh16:
	adrp	x8, l___const.print_reg.names@PAGE
Lloh17:
	add	x8, x8, l___const.print_reg.names@PAGEOFF
	ldrb	w8, [x8, x22]
	strb	w8, [x19]
	mov	w8, #130
	tst	w21, w8
	mov	w8, #108
	mov	w9, #104
	csel	w8, w9, w8, eq
	strb	w8, [x19, #1]
	strb	wzr, [x19, #2]
	b	LBB0_18
LBB0_13:
Lloh18:
	adrp	x8, _LH5801_IFMT_FD_MOD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LH5801_IFMT_FD_MOD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.14:
	ldr	w9, [x20, #12]
	mov	x8, x19
	cbz	w9, LBB0_16
; %bb.15:
	mov	w9, #35
	mov	x8, x19
	strb	w9, [x8], #1
LBB0_16:
	mov	w9, #40
Lloh21:
	adrp	x10, l___const.print_reg.names@PAGE
Lloh22:
	add	x10, x10, l___const.print_reg.names@PAGEOFF
	strb	w9, [x8]
	ldrb	w9, [x10, x22]
	strb	w9, [x8, #1]
	mov	w9, #41
	strh	w9, [x8, #2]
	b	LBB0_18
LBB0_17:
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_lh5801_insn_descs,8,3          ; @lh5801_insn_descs
	.section	__TEXT,__cstring,cstring_literals
l___const.print_reg.names:              ; @__const.print_reg.names
	.asciz	"xyu"

	.comm	_LH5801_IFMT_REG_MASK,4,2       ; @LH5801_IFMT_REG_MASK
l_.str:                                 ; @.str
	.asciz	"a"

l_.str.1:                               ; @.str.1
	.asciz	"s"

l_.str.2:                               ; @.str.2
	.asciz	"p"

l_.str.3:                               ; @.str.3
	.asciz	"invalid"

	.comm	_LH5801_IFMT_FD_MOD,4,2         ; @LH5801_IFMT_FD_MOD
	.no_dead_strip	_print_reg
.subsections_via_symbols
