	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxrpc_krb5_decode_principal
_rxrpc_krb5_decode_principal:           ## @rxrpc_krb5_decode_principal
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %r12d
	cmpl	$12, %r12d
	ja	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movl	(%r15), %edi
	callq	_ntohl
	movl	%eax, %r13d
	movl	4(%r15), %edi
	callq	_ntohl
	movl	%eax, %r14d
	movl	8(%r15), %edi
	callq	_ntohl
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	__enter
	movl	(%r15), %edi
	callq	_ntohl
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %r13d
	movq	_AFSTOKEN_K5_COMPONENTS_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_1
## %bb.5:
	addl	$-4, %r12d
	movl	%r13d, (%rbx)
	leal	4(,%r13,4), %eax
	cmpl	%eax, %r12d
	jbe	LBB0_1
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %edi
	movl	%r13d, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$4, %r15
	movl	%r13d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$3, %r12d
	jbe	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edi
	callq	_ntohl
	testl	%eax, %eax
	je	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %r13d
	movq	_AFSTOKEN_STRING_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	$-4, %r12d
	cmpl	%r12d, %r13d
	ja	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	leal	1(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%rdx), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	%r13d, %ecx
	movq	$0, (%rax,%rcx,8)
	addl	$3, %r13d
	andl	$-4, %r13d
	subl	%r13d, %r12d
	movq	%r13, %r15
	addq	%rbx, %r15
	incq	%r14
	cmpq	%r14, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.14:
	cmpl	$3, %r12d
	jbe	LBB0_1
## %bb.15:
	movl	(%r15), %edi
	callq	_ntohl
	testl	%eax, %eax
	je	LBB0_1
## %bb.16:
	movl	%eax, %ebx
	movq	_AFSTOKEN_K5_REALM_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	ja	LBB0_1
## %bb.17:
	addl	$-4, %r12d
	cmpl	%r12d, %ebx
	ja	LBB0_1
## %bb.18:
	leal	1(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	addq	$4, %r15
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	8(%r14), %rdx
	movl	%ebx, %eax
	movq	$0, (%rdx,%rax,8)
	addl	$3, %ebx
	andl	$-4, %ebx
	subl	%ebx, %r12d
	addq	%r15, %rbx
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	__debug
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	callq	__leave
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	",{%x,%x,%x},%u"

	.comm	_AFSTOKEN_K5_COMPONENTS_MAX,4,2 ## @AFSTOKEN_K5_COMPONENTS_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AFSTOKEN_STRING_MAX,4,2        ## @AFSTOKEN_STRING_MAX
	.comm	_AFSTOKEN_K5_REALM_MAX,4,2      ## @AFSTOKEN_K5_REALM_MAX
L_.str.1:                               ## @.str.1
	.asciz	"%s/...@%s"

L_.str.2:                               ## @.str.2
	.asciz	" = 0 [toklen=%u]"

	.no_dead_strip	_rxrpc_krb5_decode_principal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxrpc_krb5_decode_principal
_rxrpc_krb5_decode_principal:           ; @rxrpc_krb5_decode_principal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w23, [x2]
	cmp	w23, #12
	b.ls	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x26, [x1]
	ldr	w0, [x26]
	bl	_ntohl
	mov	x24, x0
	mov	x22, x26
	ldr	w0, [x22, #4]!
	bl	_ntohl
	mov	x25, x0
	ldr	w0, [x26, #8]
	bl	_ntohl
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x25
	mov	x4, x23
	bl	__enter
	ldr	w0, [x26]
	bl	_ntohl
Lloh2:
	adrp	x8, _AFSTOKEN_K5_COMPONENTS_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AFSTOKEN_K5_COMPONENTS_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w0, w8, #2, ne
	b.hi	LBB0_13
; %bb.2:
	mov	x24, x0
	sub	w26, w23, #4
	str	w0, [x21]
	lsl	w8, w0, #2
	add	w8, w8, #4
	cmp	w26, w8
	b.ls	LBB0_13
; %bb.3:
Lloh5:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w0, #8
	mov	x1, x24
	bl	_kcalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_18
; %bb.4:
	mov	x27, #0
	mov	w8, w24
	lsl	x24, x8, #3
Lloh7:
	adrp	x28, _AFSTOKEN_STRING_MAX@GOTPAGE
Lloh8:
	ldr	x28, [x28, _AFSTOKEN_STRING_MAX@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w26, #3
	b.ls	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22], #4
	bl	_ntohl
	ldr	w8, [x28]
	cmp	w0, #0
	ccmp	w0, w8, #2, ne
	b.hi	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	sub	w26, w26, #4
	cmp	w0, w26
	b.hi	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w23, #1
	ldr	w1, [x25]
	bl	_kmalloc
	ldr	x8, [x21, #16]
	str	x0, [x8, x27]
	ldr	x8, [x21, #16]
	ldr	x0, [x8, x27]
	cbz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x27]
	str	xzr, [x8, w23, uxtw #3]
	add	w8, w23, #3
	and	w8, w8, #0xfffffffc
	sub	w26, w26, w8
	add	x22, x22, x8
	add	x27, x27, #8
	cmp	x24, x27
	b.ne	LBB0_5
; %bb.10:
	cmp	w26, #3
	b.ls	LBB0_13
; %bb.11:
	ldr	w0, [x22], #4
	bl	_ntohl
Lloh9:
	adrp	x8, _AFSTOKEN_K5_REALM_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AFSTOKEN_K5_REALM_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w0, w8, #2, ne
	b.hi	LBB0_13
; %bb.12:
	mov	x23, x0
	sub	w24, w26, #4
	cmp	w0, w24
	b.ls	LBB0_16
LBB0_13:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	add	w0, w23, #1
	ldr	w1, [x25]
	bl	_kmalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_18
; %bb.17:
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldp	x2, x8, [x21, #8]
	str	xzr, [x2, w23, uxtw #3]
	add	w9, w23, #3
	and	w9, w9, #0xfffffffc
	sub	w21, w24, w9
	add	x22, x22, x9
	ldr	x1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__debug
	str	x22, [x20]
	str	w21, [x19]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	__leave
	mov	w0, #0
	b	LBB0_15
LBB0_18:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	",{%x,%x,%x},%u"

	.comm	_AFSTOKEN_K5_COMPONENTS_MAX,4,2 ; @AFSTOKEN_K5_COMPONENTS_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AFSTOKEN_STRING_MAX,4,2        ; @AFSTOKEN_STRING_MAX
	.comm	_AFSTOKEN_K5_REALM_MAX,4,2      ; @AFSTOKEN_K5_REALM_MAX
l_.str.1:                               ; @.str.1
	.asciz	"%s/...@%s"

l_.str.2:                               ; @.str.2
	.asciz	" = 0 [toklen=%u]"

	.no_dead_strip	_rxrpc_krb5_decode_principal
.subsections_via_symbols
