	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generateBSR
_generateBSR:                           ## @generateBSR
	.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	%rsi, %r15
	callq	_INSTRUCTION_BCD
	movl	%eax, %r14d
	movq	8(%r15), %r12
	testb	$3, 16(%r15)
	movq	_R2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	je	LBB0_2
## %bb.1:
	movl	$2, %esi
	callq	_emitMOVLI
	movq	_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_emitMOVLI
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_emitBRA
	movl	(%rbx), %esi
	movq	_R15@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_emitMOVLM
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_emit16
	jmp	LBB0_3
LBB0_2:
	movl	$1, %esi
	callq	_emitMOVLI
	movq	_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_emitMOVLI
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_emitBRA
	movl	(%rbx), %esi
	movq	_R15@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_emitMOVLM
LBB0_3:
	leal	(%r14,%r14), %eax
	movl	%eax, %ecx
	orl	$-8192, %ecx                    ## imm = 0xE000
	testl	$2048, %r14d                    ## imm = 0x800
	cmovel	%eax, %ecx
	movl	%r12d, %ebx
	addl	$4, %ebx
	leal	(%r12,%rcx), %esi
	addl	$4, %esi
	movq	%r15, %rdi
	callq	_emit32
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_emit32
	movq	%r15, %rdi
	movl	$21, %esi
	callq	_emitMOVLSG
	addq	$2, 8(%r15)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_sh2rec_rec_inst
	movq	%r15, %rdi
	callq	_emitRTS
	movq	_R15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_emitMOVLP
	addl	$2, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R2,4,2                         ## @R2
	.comm	_R0,4,2                         ## @R0
	.comm	_R15,4,2                        ## @R15
	.no_dead_strip	_generateBSR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generateBSR
_generateBSR:                           ; @generateBSR
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	bl	_INSTRUCTION_BCD
	mov	x20, x0
	ldr	x23, [x19, #8]
Lloh0:
	adrp	x24, _R2@GOTPAGE
Lloh1:
	ldr	x24, [x24, _R2@GOTPAGEOFF]
	ldr	w2, [x24]
	ldrb	w8, [x19, #16]
Lloh2:
	adrp	x21, _R15@GOTPAGE
Lloh3:
	ldr	x21, [x21, _R15@GOTPAGEOFF]
Lloh4:
	adrp	x22, _R0@GOTPAGE
Lloh5:
	ldr	x22, [x22, _R0@GOTPAGEOFF]
	mov	x0, x19
	tst	w8, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #2
	bl	_emitMOVLI
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #2
	bl	_emitMOVLI
	mov	x0, x19
	mov	w1, #5
	bl	_emitBRA
	ldr	w1, [x24]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_emitMOVLM
	mov	x0, x19
	mov	w1, #0
	bl	_emit16
	b	LBB0_3
LBB0_2:
	mov	w1, #1
	bl	_emitMOVLI
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #2
	bl	_emitMOVLI
	mov	x0, x19
	mov	w1, #4
	bl	_emitBRA
	ldr	w1, [x24]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_emitMOVLM
LBB0_3:
	lsl	w8, w20, #1
	orr	w9, w8, #0xffffe000
	tst	w20, #0x800
	csel	w8, w8, w9, eq
	add	w20, w23, #4
	add	w1, w20, w8
	mov	x0, x19
	bl	_emit32
	mov	x0, x19
	mov	x1, x20
	bl	_emit32
	mov	x0, x19
	mov	w1, #21
	bl	_emitMOVLSG
	ldr	x8, [x19, #8]
	add	x8, x8, #2
	str	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #1
	bl	_sh2rec_rec_inst
	mov	x0, x19
	bl	_emitRTS
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_emitMOVLP
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R2,4,2                         ; @R2
	.comm	_R0,4,2                         ; @R0
	.comm	_R15,4,2                        ; @R15
	.no_dead_strip	_generateBSR
.subsections_via_symbols
