	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gss_krb5_remove_padding
_gss_krb5_remove_padding:               ## @gss_krb5_remove_padding
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rsi
	movq	40(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rsi, %rdx
	subq	%rcx, %rdx
	jbe	LBB0_1
## %bb.3:
	movq	%rdx, %rbx
	subq	8(%r15), %rbx
	jbe	LBB0_4
## %bb.5:
	movq	24(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	seta	%dil
	callq	_BUG_ON
	movq	24(%r15), %rax
	movq	8(%rax), %rax
	movl	-1(%rbx,%rax), %ebx
	cmpl	%r14d, %ebx
	jle	LBB0_7
	jmp	LBB0_9
LBB0_1:
	movq	8(%rax), %rdx
	movl	-1(%rsi,%rdx), %ebx
	movslq	%ebx, %rdx
	subq	%rdx, %rcx
	jb	LBB0_9
## %bb.2:
	movq	%rcx, (%rax)
	cmpl	%r14d, %ebx
	jle	LBB0_7
	jmp	LBB0_9
LBB0_4:
	movq	16(%r15), %rax
	movq	32(%r15), %rsi
	leaq	(%rdx,%rax), %rbx
	decq	%rbx
	movq	_PAGE_CACHE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rbx, %rax
	shrq	%cl, %rax
	movq	_PAGE_CACHE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%ecx, %ebx
	movl	%eax, %eax
	movl	(%rsi,%rax,4), %edi
	movq	_KM_USER0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kmap_atomic
	movl	(%rax,%rbx,4), %ebx
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_kunmap_atomic
	cmpl	%r14d, %ebx
	jg	LBB0_9
LBB0_7:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	subq	%rcx, %rax
	jbe	LBB0_9
## %bb.8:
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_CACHE_SHIFT,8,3           ## @PAGE_CACHE_SHIFT
	.comm	_PAGE_CACHE_SIZE,4,2            ## @PAGE_CACHE_SIZE
	.comm	_KM_USER0,4,2                   ## @KM_USER0
	.no_dead_strip	_gss_krb5_remove_padding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gss_krb5_remove_padding
_gss_krb5_remove_padding:               ; @gss_krb5_remove_padding
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x11, [x0]
	ldr	x8, [x0, #40]
	ldr	x9, [x8]
	subs	x10, x11, x9
	b.ls	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	subs	x21, x10, x8
	b.ls	LBB0_5
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x21, x8
	cset	w0, hi
	bl	_BUG_ON
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	add	x8, x21, x8
	ldur	w21, [x8, #-1]
	cmp	w21, w20
	b.le	LBB0_6
	b	LBB0_8
LBB0_3:
	ldr	x10, [x8, #8]
	add	x10, x11, x10
	ldur	w21, [x10, #-1]
	sxtw	x10, w21
	subs	x9, x9, x10
	b.lo	LBB0_8
; %bb.4:
	str	x9, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	cmp	w21, w20
	b.le	LBB0_6
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #16]
	add	x8, x10, x8
	sub	x8, x8, #1
Lloh0:
	adrp	x9, _PAGE_CACHE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_CACHE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsr	x9, x8, x9
Lloh3:
	adrp	x10, _PAGE_CACHE_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_CACHE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w10, w10, #1
	and	w21, w10, w8
	ldr	x8, [x19, #32]
	ldr	w0, [x8, w9, uxtw #2]
Lloh6:
	adrp	x22, _KM_USER0@GOTPAGE
Lloh7:
	ldr	x22, [x22, _KM_USER0@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kmap_atomic
	ldr	w21, [x0, w21, uxtw #2]
	ldr	w1, [x22]
	bl	_kunmap_atomic
	cmp	w21, w20
	b.gt	LBB0_8
LBB0_6:
	ldr	x8, [x19]
	sxtw	x9, w21
	subs	x8, x8, x9
	b.ls	LBB0_8
; %bb.7:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_CACHE_SHIFT,8,3           ; @PAGE_CACHE_SHIFT
	.comm	_PAGE_CACHE_SIZE,4,2            ; @PAGE_CACHE_SIZE
	.comm	_KM_USER0,4,2                   ; @KM_USER0
	.no_dead_strip	_gss_krb5_remove_padding
.subsections_via_symbols
