	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_rom_name
_extract_rom_name:                      ## @extract_rom_name
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	movslq	%ebx, %rax
	xorq	$1, %rax
	cmpb	$32, (%r15,%rax)
	je	LBB0_1
## %bb.3:
	incl	%ebx
	movb	$32, %al
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%r14b, %edx
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	addq	$3, %r12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movl	%r14d, %eax
	cmpl	%r13d, %ebx
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %ecx
	xorq	$1, %rcx
	movzbl	(%r15,%rcx), %r14d
	cmpb	$32, %r14b
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$32, %al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$32, %r14b
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$37, %r14b
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-32(%r14), %eax
	cmpb	$94, %al
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	%r14b, (%r12)
	incq	%r12
	jmp	LBB0_11
LBB0_12:
	movb	$0, (%r12)
	subl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%%%02x"

	.no_dead_strip	_extract_rom_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_rom_name
_extract_rom_name:                      ; @extract_rom_name
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	w2, w2, #1
	b.lt	LBB0_12
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x8, w2
	eor	x8, x8, #0x1
	ldrb	w8, [x20, x8]
	cmp	w8, #32
	b.eq	LBB0_1
; %bb.3:
	mov	w24, #0
	add	w25, w2, #1
	mov	w8, #32
	mov	x21, x19
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_sprintf
	add	x21, x21, #3
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	mov	x8, x23
	cmp	w25, w24
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w9, w24
	eor	x9, x9, #0x1
	ldrb	w23, [x20, x9]
	subs	w9, w23, #32
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w8, #0xff
	cmp	w8, #32
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #32
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #37
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w9, #0xff
	cmp	w8, #94
	b.hi	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	strb	w23, [x21], #1
	b	LBB0_5
LBB0_12:
	mov	x21, x19
LBB0_13:
	strb	wzr, [x21]
	sub	w0, w21, w19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%%%02x"

	.no_dead_strip	_extract_rom_name
.subsections_via_symbols
