	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_send_resume_token_to_nvlist ## -- Begin function zfs_send_resume_token_to_nvlist
	.p2align	4, 0x90
_zfs_send_resume_token_to_nvlist:       ## @zfs_send_resume_token_to_nvlist
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_1
## %bb.4:
	movl	-44(%rbp), %eax
	movq	_ZFS_SEND_RESUME_TOKEN_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movl	$45, %esi
	callq	_strrchr
	movq	%rax, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movl	%eax, %r12d
	shrl	$31, %r12d
	addl	%eax, %r12d
	sarl	%r12d
	movslq	%r12d, %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_zfs_alloc
	movq	%rax, %r15
	cmpl	$2, %r13d
	jl	LBB0_12
## %bb.7:
	movl	%r12d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r13), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	addq	$2, %rbx
	cmpq	%r13, %r14
	jne	LBB0_9
LBB0_12:
	leaq	-88(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_fletcher_4_native
	movq	-88(%rbp), %rax
	movq	(%rax), %rax
	cmpq	-96(%rbp), %rax
	jne	LBB0_13
## %bb.14:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_zfs_alloc
	movq	%rax, %rbx
	movq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_uncompress
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	-72(%rbp), %rsi
	cmpq	-64(%rbp), %rsi
	jne	LBB0_16
## %bb.17:
	movq	_KM_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvlist_unpack
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.18:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_dgettext
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_5:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dgettext
	movl	-44(%rbp), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	jmp	LBB0_20
LBB0_13:
	movq	%r15, %rdi
	callq	_free
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_16:
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movq	%r15, %rdi
	callq	_free
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_11:
	callq	_dgettext
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_3:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_zfs_error_aux
LBB0_20:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	-80(%rbp), %rbx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u-%llx-%llx-"

	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
L_.str.1:                               ## @.str.1
	.asciz	"resume token is corrupt (invalid format)"

	.comm	_ZFS_SEND_RESUME_TOKEN_VERSION,4,2 ## @ZFS_SEND_RESUME_TOKEN_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"resume token is corrupt (invalid version %u)"

L_.str.3:                               ## @.str.3
	.asciz	"%2hhx"

L_.str.4:                               ## @.str.4
	.asciz	"resume token is corrupt (payload is not hex-encoded)"

L_.str.5:                               ## @.str.5
	.asciz	"resume token is corrupt (incorrect checksum)"

	.comm	_Z_OK,8,3                       ## @Z_OK
L_.str.6:                               ## @.str.6
	.asciz	"resume token is corrupt (decompression failed)"

	.comm	_KM_SLEEP,4,2                   ## @KM_SLEEP
L_.str.7:                               ## @.str.7
	.asciz	"resume token is corrupt (nvlist_unpack failed)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_send_resume_token_to_nvlist ; -- Begin function zfs_send_resume_token_to_nvlist
	.p2align	2
_zfs_send_resume_token_to_nvlist:       ; @zfs_send_resume_token_to_nvlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x19, x0
	add	x8, sp, #56
	str	x8, [sp, #16]
	add	x8, sp, #64
	sub	x9, x29, #52
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_11
; %bb.1:
	ldur	w8, [x29, #-52]
Lloh2:
	adrp	x9, _ZFS_SEND_RESUME_TOKEN_VERSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ZFS_SEND_RESUME_TOKEN_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.2:
	mov	x0, x20
	mov	w1, #45
	bl	_strrchr
	add	x22, x0, #1
	mov	x0, x22
	bl	_strlen
	mov	x23, x0
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w21, w8, #1
	sbfx	x1, x8, #1, #31
	mov	x0, x19
	bl	_zfs_alloc
	mov	x20, x0
	cmp	w23, #2
	b.lt	LBB0_6
; %bb.3:
	mov	x24, #0
Lloh5:
	adrp	x23, l_.str.3@PAGE
Lloh6:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x24
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x22, x22, #2
	cmp	x21, x24
	b.ne	LBB0_4
LBB0_6:
	add	x3, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_fletcher_4_native
	ldr	x8, [sp, #48]
	ldr	x8, [x8]
	ldr	x9, [sp, #64]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.7:
	ldr	x1, [sp, #56]
	mov	x0, x19
	bl	_zfs_alloc
	mov	x22, x0
	ldr	x8, [sp, #56]
	str	x8, [sp, #40]
	add	x1, sp, #40
	mov	x2, x20
	mov	x3, x21
	bl	_uncompress
Lloh7:
	adrp	x8, _Z_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.8:
	ldr	x1, [sp, #40]
	ldr	x8, [sp, #56]
	cmp	x1, x8
	b.ne	LBB0_17
; %bb.9:
Lloh10:
	adrp	x8, _KM_SLEEP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KM_SLEEP@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x2, sp, #32
	mov	x0, x22
	bl	_nvlist_unpack
	mov	x21, x0
	mov	x0, x22
	bl	_free
	mov	x0, x20
	bl	_free
	cbz	w21, LBB0_19
; %bb.10:
Lloh13:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dgettext
	mov	x1, x0
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldur	w8, [x29, #-52]
	str	x8, [sp]
LBB0_14:
	mov	x0, x19
	bl	_zfs_error_aux
	mov	x0, #0
LBB0_15:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	mov	x0, x20
	bl	_free
Lloh28:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_17:
	mov	x0, x22
	bl	_free
	mov	x0, x20
	bl	_free
Lloh33:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_18:
	mov	x0, x20
	bl	_free
Lloh38:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_19:
	ldr	x0, [sp, #32]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u-%llx-%llx-"

	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
l_.str.1:                               ; @.str.1
	.asciz	"resume token is corrupt (invalid format)"

	.comm	_ZFS_SEND_RESUME_TOKEN_VERSION,4,2 ; @ZFS_SEND_RESUME_TOKEN_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"resume token is corrupt (invalid version %u)"

l_.str.3:                               ; @.str.3
	.asciz	"%2hhx"

l_.str.4:                               ; @.str.4
	.asciz	"resume token is corrupt (payload is not hex-encoded)"

l_.str.5:                               ; @.str.5
	.asciz	"resume token is corrupt (incorrect checksum)"

	.comm	_Z_OK,8,3                       ; @Z_OK
l_.str.6:                               ; @.str.6
	.asciz	"resume token is corrupt (decompression failed)"

	.comm	_KM_SLEEP,4,2                   ; @KM_SLEEP
l_.str.7:                               ; @.str.7
	.asciz	"resume token is corrupt (nvlist_unpack failed)"

.subsections_via_symbols
