	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_iws_new                   ## -- Begin function iwdp_iws_new
	.p2align	4, 0x90
_iwdp_iws_new:                          ## @iwdp_iws_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$4, %edi
	callq	_malloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_TYPE_IWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	callq	_ws_new
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_iwdp_send_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_iwdp_on_http_request@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_iwdp_on_upgrade@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_iwdp_on_frame@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%r14, (%rax)
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_iwdp_iws_free
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_IWS,4,2                   ## @TYPE_IWS
	.comm	_iwdp_send_data,4,2             ## @iwdp_send_data
	.comm	_iwdp_on_http_request,4,2       ## @iwdp_on_http_request
	.comm	_iwdp_on_upgrade,4,2            ## @iwdp_on_upgrade
	.comm	_iwdp_on_frame,4,2              ## @iwdp_on_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwdp_iws_new                   ; -- Begin function iwdp_iws_new
	.p2align	2
_iwdp_iws_new:                          ; @iwdp_iws_new
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #4
	bl	_malloc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.1:
	sxtw	x20, w0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _TYPE_IWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_IWS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	bl	_ws_new
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _iwdp_send_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iwdp_send_data@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _iwdp_on_http_request@GOTPAGE
Lloh7:
	ldr	x9, [x9, _iwdp_on_http_request@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh9:
	adrp	x8, _iwdp_on_upgrade@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iwdp_on_upgrade@GOTPAGEOFF]
Lloh11:
	adrp	x9, _iwdp_on_frame@GOTPAGE
Lloh12:
	ldr	x9, [x9, _iwdp_on_frame@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	stp	x19, x20, [x0]
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_iwdp_iws_free
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_IWS,4,2                   ; @TYPE_IWS
	.comm	_iwdp_send_data,4,2             ; @iwdp_send_data
	.comm	_iwdp_on_http_request,4,2       ; @iwdp_on_http_request
	.comm	_iwdp_on_upgrade,4,2            ; @iwdp_on_upgrade
	.comm	_iwdp_on_frame,4,2              ; @iwdp_on_frame
.subsections_via_symbols
