	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_pvh_set_env
_xen_pvh_set_env:                       ## @xen_pvh_set_env
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	%rsi, %r13
	leaq	L_.str(%rip), %r14
	leaq	-48(%rbp), %r15
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
	cmpb	$0, (%rbx)
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	*%r13
	testl	%eax, %eax
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -48(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strsep
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_kern_setenv
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_xc_printf
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
	cmpb	$0, (%rbx)
	jne	LBB0_3
LBB0_10:
	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	"="

L_.str.1:                               ## @.str.1
	.asciz	"unable to add kenv %s=%s\n"

	.no_dead_strip	_xen_pvh_set_env
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_pvh_set_env
_xen_pvh_set_env:                       ; @xen_pvh_set_env
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x19, x1
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	add	x22, x22, w8, sxtw
	ldrb	w8, [x22]
	cbz	w8, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	blr	x19
	cbnz	w0, LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [sp, #8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	mov	x22, x0
	ldr	x1, [sp, #8]
	bl	_kern_setenv
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_xc_printf
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [sp, #8]
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	add	x22, x8, #1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_4
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"="

l_.str.1:                               ; @.str.1
	.asciz	"unable to add kenv %s=%s\n"

	.no_dead_strip	_xen_pvh_set_env
.subsections_via_symbols
