	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hysdn_log_close
_hysdn_log_close:                       ## @hysdn_log_close
	.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
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	orl	%ecx, %eax
	andl	(%rbx), %eax
	cmpl	%ecx, %eax
	je	LBB0_15
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.16:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_5
LBB0_8:
	movb	$1, %al
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_2:
	movq	_card_root@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r15
	movq	(%r15), %r13
	movq	%r14, %rdi
	callq	_PDE
	cmpq	%rax, %r13
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_3
	jmp	LBB0_5
LBB0_6:
	movq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_8
LBB0_5:
	decq	8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	decl	8(%rbx)
	movq	(%rbx), %rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.11:
	testb	%al, %al
	jne	LBB0_15
## %bb.12:
	cmpq	$0, 8(%r15)
	jg	LBB0_15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rdi), %rax
	movq	%rax, 16(%r15)
	callq	_kfree
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_13
LBB0_15:
	xorl	%eax, %eax
	callq	_unlock_kernel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_card_root,8,3                  ## @card_root
	.no_dead_strip	_hysdn_log_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hysdn_log_close
_hysdn_log_close:                       ; @hysdn_log_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_lock_kernel
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	cmp	w8, w10
	b.eq	LBB0_14
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x21, [x8]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	x20, [x21, #16]
	cbnz	x20, LBB0_8
LBB0_3:
	mov	w8, #1
	cbnz	x21, LBB0_9
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _card_root@GOTPAGE
Lloh7:
	ldr	x8, [x8, _card_root@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	cbz	x22, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x22]
	ldr	x23, [x20]
	mov	x0, x19
	bl	_PDE
	cmp	x23, x0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_5
	b	LBB0_8
LBB0_7:
	ldr	x20, [x22]
	cbz	x20, LBB0_3
LBB0_8:
	mov	w8, #0
	ldr	x9, [x20, #8]
	sub	x9, x9, #1
	str	x9, [x20, #8]
	cbz	x21, LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21, #8]
	sub	w9, w9, #1
	str	w9, [x21, #8]
	ldr	x21, [x21]
	cbnz	x21, LBB0_9
LBB0_10:
	tbnz	w8, #0, LBB0_14
; %bb.11:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	b.gt	LBB0_14
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x0]
	str	x8, [x20, #16]
	bl	_kfree
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_12
LBB0_14:
	bl	_unlock_kernel
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_card_root,8,3                  ; @card_root
	.no_dead_strip	_hysdn_log_close
.subsections_via_symbols
