	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_nfshandle
_decode_nfshandle:                      ## @decode_nfshandle
	.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, %r15d
	movq	%rsi, %r12
	callq	_kern_getenv
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.2:
	cmpb	$88, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rbx
	incq	%rbx
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	cmovlel	%r13d, %r15d
	incq	%r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$88, (%rbx)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	%al, (%r12,%r13)
	addq	$2, %rbx
	incq	%r13
	cmpl	%r13d, %r15d
	jne	LBB0_5
LBB0_9:
	movq	%r14, %rdi
	callq	_freeenv
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	callq	_freeenv
LBB0_10:
	movl	%r13d, %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	"%2x"

	.no_dead_strip	_decode_nfshandle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_nfshandle
_decode_nfshandle:                      ; @decode_nfshandle
	.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	x23, x2
	mov	x20, x1
	bl	_kern_getenv
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_strlen
	cmp	w0, #2
	b.lt	LBB0_8
; %bb.2:
	ldrb	w8, [x19]
	cmp	w8, #88
	b.ne	LBB0_8
; %bb.3:
	mov	x21, #0
	add	x22, x19, #1
	cmp	w23, #0
	csel	w8, w23, wzr, gt
	add	x24, x8, #1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	cmp	w8, #88
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #256
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w8, [x20, x21]
	add	x22, x22, #2
	add	x21, x21, #1
	cmp	w24, w21
	b.ne	LBB0_4
LBB0_8:
	mov	x0, x19
	bl	_freeenv
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
LBB0_11:
	mov	x0, x19
	bl	_freeenv
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%2x"

	.no_dead_strip	_decode_nfshandle
.subsections_via_symbols
