	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_putcode                   ## -- Begin function grub_putcode
	.p2align	4, 0x90
_grub_putcode:                          ## @grub_putcode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	cmpb	$9, %bl
	jne	LBB0_6
## %bb.1:
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	movq	%rsi, %r14
	callq	*%rcx
	movl	%eax, %ebx
	shrl	$8, %ebx
	orl	$-8, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$32, %edi
	callq	*8(%r14)
	incl	%ebx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movsbl	%bl, %edi
	movq	%rsi, %r14
	callq	*8(%rsi)
	cmpb	$10, %bl
	jne	LBB0_5
## %bb.7:
	addq	$8, %r14
	movb	$13, %al
	movq	%r14, %rsi
	jmp	LBB0_8
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	addq	$8, %rsi
	movb	$9, %al
LBB0_8:
	movzbl	%al, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rsi)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_putcode                   ; -- Begin function grub_putcode
	.p2align	2
_grub_putcode:                          ; @grub_putcode
	.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
	mov	x19, x1
	cmp	w0, #9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.2:
	blr	x8
	ldr	x8, [x19, #8]!
	ubfx	w21, w0, #8, #3
	mov	w0, #32
	blr	x8
	cmp	w21, #7
	b.eq	LBB0_11
; %bb.3:
	ldr	x8, [x19]
	mov	w0, #32
	blr	x8
	cmp	w21, #6
	b.eq	LBB0_11
; %bb.4:
	ldr	x8, [x19]
	mov	w0, #32
	blr	x8
	cmp	w21, #5
	b.eq	LBB0_11
; %bb.5:
	ldr	x8, [x19]
	mov	w0, #32
	blr	x8
	cmp	w21, #4
	b.eq	LBB0_11
; %bb.6:
	ldr	x8, [x19]
	mov	w0, #32
	blr	x8
	cmp	w21, #3
	b.eq	LBB0_11
; %bb.7:
	ldr	x8, [x19]
	mov	w0, #32
	blr	x8
	cmp	w21, #2
	b.eq	LBB0_11
; %bb.8:
	ldr	x8, [x19]
	mov	w20, #32
	mov	w0, #32
	blr	x8
	cmp	w21, #1
	b.eq	LBB0_11
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	ldr	x8, [x19, #8]!
	blr	x8
	cmp	w20, #10
	b.ne	LBB0_11
; %bb.10:
	mov	w20, #13
	b	LBB0_13
LBB0_11:
	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
LBB0_12:
	add	x19, x19, #8
	mov	w20, #9
LBB0_13:
	ldr	x1, [x19]
	mov	x0, x20
	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
	br	x1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
