	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_new                       ## -- Begin function iwdp_new
	.p2align	4, 0x90
_iwdp_new:                              ## @iwdp_new
	.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
	movl	$4, %edi
	callq	_malloc
	movslq	%eax, %rbx
	movl	$4, %edi
	callq	_malloc
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movslq	%eax, %r15
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_iwdp_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_iwdp_on_accept@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_iwdp_on_recv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_iwdp_on_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_iwdp_on_error@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, 24(%rbx)
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, %r13
LBB0_4:
	movq	%r13, 16(%r15)
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 8(%r15)
	movq	_HT_STRING_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ht_new
	movl	%eax, (%r15)
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_iwdp_free
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iwdp_start,4,2                 ## @iwdp_start
	.comm	_iwdp_on_accept,4,2             ## @iwdp_on_accept
	.comm	_iwdp_on_recv,4,2               ## @iwdp_on_recv
	.comm	_iwdp_on_close,4,2              ## @iwdp_on_close
	.comm	_iwdp_on_error,4,2              ## @iwdp_on_error
	.comm	_HT_STRING_KEYS,4,2             ## @HT_STRING_KEYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_new                       ; -- Begin function iwdp_new
	.p2align	2
_iwdp_new:                              ; @iwdp_new
	.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	x20, x1
	mov	x22, x0
	mov	w0, #4
	bl	_malloc
	mov	x21, x0
	sxtw	x19, w21
	mov	w0, #4
	bl	_malloc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w21, LBB0_6
; %bb.1:
	cbz	w0, LBB0_6
; %bb.2:
	sxtw	x21, w0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _iwdp_start@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwdp_start@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh3:
	adrp	x8, _iwdp_on_accept@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iwdp_on_accept@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _iwdp_on_recv@GOTPAGE
Lloh7:
	ldr	x9, [x9, _iwdp_on_recv@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh9:
	adrp	x8, _iwdp_on_close@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iwdp_on_close@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _iwdp_on_error@GOTPAGE
Lloh13:
	ldr	x9, [x9, _iwdp_on_error@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	str	x21, [x19, #24]
	cbz	x22, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_strdup
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	str	x0, [x21, #16]
	mov	x0, x20
	bl	_strdup
	str	x0, [x21, #8]
Lloh15:
	adrp	x8, _HT_STRING_KEYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HT_STRING_KEYS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_ht_new
	str	w0, [x21]
	cbnz	w0, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_iwdp_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_iwdp_start,4,2                 ; @iwdp_start
	.comm	_iwdp_on_accept,4,2             ; @iwdp_on_accept
	.comm	_iwdp_on_recv,4,2               ; @iwdp_on_recv
	.comm	_iwdp_on_close,4,2              ; @iwdp_on_close
	.comm	_iwdp_on_error,4,2              ; @iwdp_on_error
	.comm	_HT_STRING_KEYS,4,2             ; @HT_STRING_KEYS
.subsections_via_symbols
