	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cr16_decode_bal
_cr16_decode_bal:                       ## @cr16_decode_bal
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_r_read_le16
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_r_read_at_le16
	movl	%eax, %r14d
	movl	4(%r15), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	decq	%rsi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	%r12d, %ecx
	sarl	$9, %ecx
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.1:
	movl	$-1, %eax
	cmpl	$129, %ecx
	jne	LBB0_5
## %bb.2:
	movl	(%r15), %r15d
	movq	(%r13), %rbx
	decq	%rbx
	movq	_cr16_regs_names@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%r12d, %edi
	callq	_cr16_get_dstreg
	movq	(%r13,%rax,8), %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_4
LBB0_3:
	movl	%r12d, %ebx
	andl	$30, %ebx
	shll	$15, %ebx
	orl	%r14d, %ebx
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %r15
	decq	%r15
	movq	_cr16_regs_names@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movl	%r12d, %edi
	callq	_cr16_get_dstreg
	movq	8(%r13,%rax,8), %r13
	movq	(%r14), %r14
	movl	%r12d, %edi
	callq	_cr16_get_dstreg
	movq	(%r14,%rax,8), %r8
	leaq	L_.str.2(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rcx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_snprintf
LBB0_4:
	movl	$4, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR16_INSTR_MAXLEN,8,3          ## @CR16_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bal"

L_.str.1:                               ## @.str.1
	.asciz	"%s,0x%x"

	.comm	_cr16_regs_names,8,3            ## @cr16_regs_names
L_.str.2:                               ## @.str.2
	.asciz	"(%s,%s),0x%08x"

	.no_dead_strip	_cr16_decode_bal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cr16_decode_bal
_cr16_decode_bal:                       ; @cr16_decode_bal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x21, x0
	bl	_r_read_le16
	mov	x19, x0
	mov	x0, x21
	mov	w1, #2
	bl	_r_read_at_le16
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x22, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
	ldr	x8, [x22]
	sub	x1, x8, #1
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	asr	w8, w19, #9
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	w20, [x20]
	ldr	x8, [x22]
	sub	x22, x8, #1
Lloh4:
	adrp	x8, _cr16_regs_names@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cr16_regs_names@GOTPAGEOFF]
Lloh6:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_cr16_get_dstreg
	ldr	x8, [x23, x0, lsl #3]
	stp	x8, x21, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	b	LBB0_4
LBB0_3:
	lsl	w8, w19, #15
	and	w8, w8, #0xf0000
	orr	w23, w8, w21
	ldr	w20, [x20]
	ldr	x8, [x22]
	sub	x21, x8, #1
Lloh9:
	adrp	x22, _cr16_regs_names@GOTPAGE
Lloh10:
	ldr	x22, [x22, _cr16_regs_names@GOTPAGEOFF]
	ldr	x24, [x22]
	mov	x0, x19
	bl	_cr16_get_dstreg
	add	x8, x24, x0, lsl #3
	ldr	x24, [x8, #8]
	ldr	x22, [x22]
	mov	x0, x19
	bl	_cr16_get_dstreg
	ldr	x8, [x22, x0, lsl #3]
	stp	x8, x23, [sp, #8]
	str	x24, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
LBB0_4:
	bl	_snprintf
	mov	w0, #4
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CR16_INSTR_MAXLEN,8,3          ; @CR16_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bal"

l_.str.1:                               ; @.str.1
	.asciz	"%s,0x%x"

	.comm	_cr16_regs_names,8,3            ; @cr16_regs_names
l_.str.2:                               ; @.str.2
	.asciz	"(%s,%s),0x%08x"

	.no_dead_strip	_cr16_decode_bal
.subsections_via_symbols
