	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_iwi_close                 ## -- Begin function iwdp_iwi_close
	.p2align	4, 0x90
_iwdp_iwi_close:                        ## @iwdp_iwi_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, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_iwdp_log_disconnect
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.2:
	movq	$0, 8(%r12)
LBB0_3:
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_ht_values
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_ht_clear
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	%r13, %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	callq	_iwdp_ipage_free
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_iwdp_iwi_free
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	jle	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_9:
	movq	_IWDP_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWDP_SUCCESS,4,2               ## @IWDP_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_iwi_close                 ; -- Begin function iwdp_iwi_close
	.p2align	2
_iwdp_iwi_close:                        ; @iwdp_iwi_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	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_iwdp_log_disconnect
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x20, #8]
LBB0_3:
	ldr	w23, [x21]
	mov	x0, x23
	bl	_ht_values
	mov	x22, x0
	mov	x0, x23
	bl	_ht_clear
	ldr	x0, [x22]
	cbz	x0, LBB0_6
; %bb.4:
	add	x23, x22, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_iwdp_ipage_free
	ldr	x0, [x23], #8
	cbnz	x0, LBB0_5
LBB0_6:
	mov	x0, x22
	bl	_free
	mov	x0, x21
	bl	_iwdp_iwi_free
	cbz	x20, LBB0_9
; %bb.7:
	ldr	x1, [x20]
	cmp	x1, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
LBB0_9:
Lloh0:
	adrp	x8, _IWDP_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWDP_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWDP_SUCCESS,4,2               ; @IWDP_SUCCESS
.subsections_via_symbols
