	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_iws_close                 ## -- Begin function iwdp_iws_close
	.p2align	4, 0x90
_iwdp_iws_close:                        ## @iwdp_iws_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.2:
	cmpq	%rbx, (%rdi)
	jne	LBB0_4
## %bb.3:
	callq	_iwdp_stop_devtools
LBB0_4:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	(%rax), %r15d
	movq	(%rbx), %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_ht_get_value
	testq	%r12, %r12
	je	LBB0_8
## %bb.6:
	cltq
	cmpq	%rbx, %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_ht_remove
LBB0_8:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	$0, 8(%rax)
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_11:
	movq	%rbx, %rdi
	callq	_iwdp_iws_free
	movq	_IWDP_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	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_iws_close                 ; -- Begin function iwdp_iws_close
	.p2align	2
_iwdp_iws_close:                        ; @iwdp_iws_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	x20, x0
	ldr	x0, [x1, #24]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	bl	_iwdp_stop_devtools
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	w21, [x8]
	ldr	x22, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_ht_get_value
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x22, LBB0_8
; %bb.6:
	sxtw	x8, w0
	cmp	x8, x19
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_ht_remove
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.9:
	str	xzr, [x8, #8]
	ldr	x1, [x8]
	cmp	x1, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
LBB0_11:
	mov	x0, x19
	bl	_iwdp_iws_free
Lloh0:
	adrp	x8, _IWDP_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWDP_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IWDP_SUCCESS,4,2               ; @IWDP_SUCCESS
.subsections_via_symbols
