	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hysdn_conf_close
_hysdn_conf_close:                      ## @hysdn_conf_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, %r14
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_card_root@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r13
	movq	%r12, %rdi
	callq	_PDE
	cmpq	%rax, %r13
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	callq	_unlock_kernel
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_5:
	movq	_LOG_PROC_OPEN@GOTPCREL(%rip), %rax
	movq	_LOG_PROC_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hysdn_addlog
LBB0_7:
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	andl	(%r14), %ecx
	cmpl	%edx, %ecx
	jne	LBB0_12
## %bb.8:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	movq	(%rdi), %rax
	movq	_CONF_STATE_POF@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.11:
	addq	$8, %r14
	movl	8(%rdi), %edi
	callq	_pof_write_close
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_12:
	xorl	%r15d, %r15d
	cmpl	%eax, %ecx
	jne	LBB0_16
## %bb.13:
	addq	$8, %r14
	xorl	%r15d, %r15d
LBB0_14:
	movq	(%r14), %rdi
LBB0_15:
	callq	_kfree
	jmp	LBB0_16
LBB0_9:
	xorl	%r15d, %r15d
LBB0_16:
	xorl	%eax, %eax
	callq	_unlock_kernel
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_card_root,8,3                  ## @card_root
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LOG_PROC_OPEN,4,2              ## @LOG_PROC_OPEN
	.comm	_LOG_PROC_ALL,4,2               ## @LOG_PROC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config close for uid=%d gid=%d mode=0x%x"

	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_CONF_STATE_POF,8,3             ## @CONF_STATE_POF
	.no_dead_strip	_hysdn_conf_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hysdn_conf_close
_hysdn_conf_close:                      ; @hysdn_conf_close
	.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	x19, x1
	mov	x21, x0
	bl	_lock_kernel
Lloh0:
	adrp	x8, _card_root@GOTPAGE
Lloh1:
	ldr	x8, [x8, _card_root@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20, #16]
	mov	x0, x21
	bl	_PDE
	cmp	x22, x0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_1
LBB0_3:
	bl	_unlock_kernel
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_4:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _LOG_PROC_OPEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LOG_PROC_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _LOG_PROC_ALL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LOG_PROC_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldp	w3, w2, [x8]
	ldr	w4, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hysdn_addlog
LBB0_6:
	ldr	w9, [x19]
Lloh14:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, _FMODE_WRITE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _FMODE_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w11, w10, w8
	and	w9, w11, w9
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.7:
	ldr	x0, [x19, #8]!
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x8, [x0]
Lloh20:
	adrp	x9, _CONF_STATE_POF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CONF_STATE_POF@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	ldr	w0, [x0, #8]
	bl	_pof_write_close
	mov	x20, x0
	b	LBB0_12
LBB0_10:
	cmp	w9, w8
	b.ne	LBB0_13
; %bb.11:
	mov	w20, #0
	add	x19, x19, #8
LBB0_12:
	ldr	x0, [x19]
	b	LBB0_15
LBB0_13:
	mov	w20, #0
	b	LBB0_16
LBB0_14:
	mov	w20, #0
LBB0_15:
	bl	_kfree
LBB0_16:
	bl	_unlock_kernel
LBB0_17:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_card_root,8,3                  ; @card_root
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LOG_PROC_OPEN,4,2              ; @LOG_PROC_OPEN
	.comm	_LOG_PROC_ALL,4,2               ; @LOG_PROC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config close for uid=%d gid=%d mode=0x%x"

	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_CONF_STATE_POF,8,3             ; @CONF_STATE_POF
	.no_dead_strip	_hysdn_conf_close
.subsections_via_symbols
