	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_rotate_vnode             ## -- Begin function audit_rotate_vnode
	.p2align	4, 0x90
_audit_rotate_vnode:                    ## @audit_rotate_vnode
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movq	%rdi, %rax
	orq	%rsi, %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_KASSERT
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vn_lock
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_VOP_GETATTR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, -48(%rbp)
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	jmp	LBB0_5
LBB0_4:
	movq	$0, -48(%rbp)
LBB0_5:
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	setne	%r13b
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_LOCK
	movq	_audit_cred@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_audit_vp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	%r14, (%rax)
	movq	%rbx, (%rcx)
	movq	-48(%rbp), %rax
	movq	_audit_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_audit_file_rotate_wait@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_audit_trail_enabled@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	xorl	%eax, %eax
	callq	_audit_syscalls_enabled_update
	xorl	%eax, %eax
	callq	_AUDIT_WORKER_UNLOCK
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	_AUDIT_CLOSE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_vn_close
	movq	%r15, %rdi
	callq	_crfree
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.comm	_audit_cred,8,3                 ## @audit_cred
	.comm	_audit_vp,8,3                   ## @audit_vp
	.comm	_audit_size,8,3                 ## @audit_size
	.comm	_audit_file_rotate_wait,8,3     ## @audit_file_rotate_wait
	.comm	_audit_trail_enabled,4,2        ## @audit_trail_enabled
	.comm	_AUDIT_CLOSE_FLAGS,4,2          ## @AUDIT_CLOSE_FLAGS
	.comm	_curthread,4,2                  ## @curthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audit_rotate_vnode             ; -- Begin function audit_rotate_vnode
	.p2align	2
_audit_rotate_vnode:                    ; @audit_rotate_vnode
	.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	x19, x1
	mov	x20, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	orr	x8, x0, x1
	ccmp	x8, #0, #4, eq
	cset	w0, eq
	bl	_KASSERT
	cbz	x19, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _LK_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LK_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_vn_lock
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_VOP_GETATTR
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [sp, #8]
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_VOP_UNLOCK
	b	LBB0_5
LBB0_4:
	str	xzr, [sp, #8]
LBB0_5:
	cmp	x19, #0
	cset	w23, ne
	bl	_AUDIT_WORKER_LOCK
Lloh6:
	adrp	x8, _audit_cred@GOTPAGE
Lloh7:
	ldr	x8, [x8, _audit_cred@GOTPAGEOFF]
	ldr	x21, [x8]
Lloh8:
	adrp	x9, _audit_vp@GOTPAGE
Lloh9:
	ldr	x9, [x9, _audit_vp@GOTPAGEOFF]
	ldr	x22, [x9]
	str	x20, [x8]
	str	x19, [x9]
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _audit_size@GOTPAGE
Lloh11:
	ldr	x9, [x9, _audit_size@GOTPAGEOFF]
Lloh12:
	str	x8, [x9]
Lloh13:
	adrp	x8, _audit_file_rotate_wait@GOTPAGE
Lloh14:
	ldr	x8, [x8, _audit_file_rotate_wait@GOTPAGEOFF]
Lloh15:
	str	xzr, [x8]
Lloh16:
	adrp	x8, _audit_trail_enabled@GOTPAGE
Lloh17:
	ldr	x8, [x8, _audit_trail_enabled@GOTPAGEOFF]
Lloh18:
	str	w23, [x8]
	bl	_audit_syscalls_enabled_update
	bl	_AUDIT_WORKER_UNLOCK
	cbz	x22, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _AUDIT_CLOSE_FLAGS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUDIT_CLOSE_FLAGS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _curthread@GOTPAGE
Lloh23:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_vn_close
	mov	x0, x21
	bl	_crfree
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.comm	_audit_cred,8,3                 ; @audit_cred
	.comm	_audit_vp,8,3                   ; @audit_vp
	.comm	_audit_size,8,3                 ; @audit_size
	.comm	_audit_file_rotate_wait,8,3     ; @audit_file_rotate_wait
	.comm	_audit_trail_enabled,4,2        ; @audit_trail_enabled
	.comm	_AUDIT_CLOSE_FLAGS,4,2          ; @AUDIT_CLOSE_FLAGS
	.comm	_curthread,4,2                  ; @curthread
.subsections_via_symbols
