	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_convert_cmdline            ## -- Begin function efi_convert_cmdline
	.p2align	4, 0x90
_efi_convert_cmdline:                   ## @efi_convert_cmdline
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	$0, -56(%rbp)
	movl	(%rsi), %eax
	movq	8(%rsi), %r15
	movb	$0, -41(%rbp)
	xorl	%r12d, %r12d
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	cmovlel	%ebx, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, %dil
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %r13d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_efi_utf8_bytes
	addl	%eax, %r12d
	incq	%rbx
	jmp	LBB0_2
LBB0_6:
	movl	%ebx, %r13d
LBB0_7:
	movq	%r14, %rdi
	testl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_9
LBB0_8:
	leaq	-41(%rbp), %r15
	xorl	%r13d, %r13d
LBB0_9:
	incl	%r12d
	movq	_MAX_CMDLINE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %rcx
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_efi_high_alloc
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_efi_utf16_to_utf8
	movb	$0, (%rax)
	movl	%r12d, (%rbx)
	movq	-56(%rbp), %r14
LBB0_11:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CMDLINE_ADDRESS,4,2        ## @MAX_CMDLINE_ADDRESS
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_convert_cmdline            ; -- Begin function efi_convert_cmdline
	.p2align	2
_efi_convert_cmdline:                   ; @efi_convert_cmdline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x0
	str	xzr, [sp, #8]
	ldr	w8, [x1]
	ldr	x20, [x1, #8]
	strb	wzr, [sp, #7]
	cbz	x20, LBB0_5
; %bb.1:
	mov	x24, #0
	mov	w23, #0
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w8, #0
	csel	w22, w8, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x24]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, w24
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w0, w8
	bl	_efi_utf8_bytes
	add	w23, w23, w0
	add	x24, x24, #1
	b	LBB0_2
LBB0_5:
	mov	w23, #0
	b	LBB0_8
LBB0_6:
	mov	x22, x24
LBB0_7:
	cbnz	w22, LBB0_9
LBB0_8:
	mov	w22, #0
	add	x20, sp, #7
LBB0_9:
	add	w23, w23, #1
Lloh0:
	adrp	x8, _MAX_CMDLINE_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CMDLINE_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_efi_high_alloc
Lloh3:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [sp, #8]
	mov	x1, x20
	mov	x2, x22
	bl	_efi_utf16_to_utf8
	strb	wzr, [x0]
	str	w23, [x19]
	ldr	x0, [sp, #8]
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CMDLINE_ADDRESS,4,2        ; @MAX_CMDLINE_ADDRESS
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
.subsections_via_symbols
