	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_web_listener_start             ## -- Begin function web_listener_start
	.p2align	4, 0x90
_web_listener_start:                    ## @web_listener_start
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %eax
	movl	%eax, -24(%rbp)
	movq	_web_connection_check_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movl	$-1, %r14d
	movl	$-1, %esi
	movq	%rbx, %rcx
	callq	_http_server_init
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_http_server_get_port
	movl	%eax, 8(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_web_listener_stop
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_web_connection_check_data,4,2  ## @web_connection_check_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_web_listener_start             ; -- Begin function web_listener_start
	.p2align	2
_web_listener_start:                    ; @web_listener_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0, #12]
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _web_connection_check_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _web_connection_check_data@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #-1
	mov	x3, x19
	bl	_http_server_init
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_http_server_get_port
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_web_listener_stop
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_web_connection_check_data,4,2  ; @web_connection_check_data
.subsections_via_symbols
