	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_request_init
_http_request_init:                     ## @http_request_init
	.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	(%rdi), %rax
	movq	_HTTP_SERVER_MAX_CONNECTIONS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, 24(%rax)
	movl	%r14d, (%rax)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	_http_request_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HTTP_SERVER_MAX_REQ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_HTTP_SERVER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_httpread_create
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_http_request_deinit
	jmp	LBB0_5
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_SERVER_MAX_CONNECTIONS,8,3 ## @HTTP_SERVER_MAX_CONNECTIONS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTTP: Too many concurrent requests"

	.comm	_http_request_cb,4,2            ## @http_request_cb
	.comm	_HTTP_SERVER_MAX_REQ_LEN,4,2    ## @HTTP_SERVER_MAX_REQ_LEN
	.comm	_HTTP_SERVER_TIMEOUT,4,2        ## @HTTP_SERVER_TIMEOUT
	.no_dead_strip	_http_request_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_request_init
_http_request_init:                     ; @http_request_init
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HTTP_SERVER_MAX_CONNECTIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HTTP_SERVER_MAX_CONNECTIONS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	str	x22, [x19, #24]
	str	w20, [x19]
	ldr	w8, [x21]
	str	w8, [x19, #16]
Lloh3:
	adrp	x8, _http_request_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _http_request_cb@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HTTP_SERVER_MAX_REQ_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HTTP_SERVER_MAX_REQ_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _HTTP_SERVER_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HTTP_SERVER_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_httpread_create
	str	x0, [x19, #8]
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_http_request_deinit
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	x19, #0
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_SERVER_MAX_CONNECTIONS,8,3 ; @HTTP_SERVER_MAX_CONNECTIONS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTTP: Too many concurrent requests"

	.comm	_http_request_cb,4,2            ; @http_request_cb
	.comm	_HTTP_SERVER_MAX_REQ_LEN,4,2    ; @HTTP_SERVER_MAX_REQ_LEN
	.comm	_HTTP_SERVER_TIMEOUT,4,2        ; @HTTP_SERVER_TIMEOUT
	.no_dead_strip	_http_request_init
.subsections_via_symbols
