	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_http_handle_callback ## -- Begin function comm_point_http_handle_callback
	.p2align	4, 0x90
_comm_point_http_handle_callback:       ## @comm_point_http_handle_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	(%rdx), %rax
	movq	_comm_http@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_ub_comm_base_now
	movq	_UB_EV_TIMEOUT@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movq	%r15, %rdi
	callq	_reclaim_http_handler
	cmpl	$0, 24(%r15)
	jne	LBB0_11
## %bb.2:
	movq	16(%r15), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movq	16(%r15), %rax
	movl	8(%r15), %esi
	movq	_NETEVENT_TIMEOUT@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movq	_UB_EV_READ@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_9
## %bb.5:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_comm_point_http_handle_read
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_7
LBB0_9:
	movq	_UB_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_12
## %bb.10:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_comm_point_http_handle_write
	testl	%eax, %eax
	jne	LBB0_11
LBB0_7:
	movq	%r15, %rdi
	callq	_reclaim_http_handler
	cmpl	$0, 24(%r15)
	je	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movswl	%bx, %esi
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_err                        ## TAILCALL
LBB0_8:
	movq	16(%r15), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movq	16(%r15), %rax
	movl	8(%r15), %esi
	movq	_NETEVENT_CLOSED@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_http,8,3                  ## @comm_http
	.comm	_UB_EV_TIMEOUT,2,1              ## @UB_EV_TIMEOUT
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http took too long, dropped"

	.comm	_NETEVENT_TIMEOUT,4,2           ## @NETEVENT_TIMEOUT
	.comm	_UB_EV_READ,2,1                 ## @UB_EV_READ
	.comm	_NETEVENT_CLOSED,4,2            ## @NETEVENT_CLOSED
	.comm	_UB_EV_WRITE,2,1                ## @UB_EV_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"Ignored event %d for httphdl."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_http_handle_callback ; -- Begin function comm_point_http_handle_callback
	.p2align	2
_comm_point_http_handle_callback:       ; @comm_point_http_handle_callback
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _comm_http@GOTPAGE
Lloh1:
	ldr	x9, [x9, _comm_http@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_log_assert
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_ub_comm_base_now
Lloh3:
	adrp	x8, _UB_EV_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UB_EV_TIMEOUT@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w20
	tst	w8, #0xffff
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	mov	x0, x19
	bl	_reclaim_http_handler
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_9
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x4, [x19, #16]
Lloh10:
	adrp	x8, _NETEVENT_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETEVENT_TIMEOUT@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	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
	br	x4
LBB0_4:
Lloh12:
	adrp	x8, _UB_EV_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UB_EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_comm_point_http_handle_read
	cbnz	w0, LBB0_9
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _UB_EV_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UB_EV_WRITE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x21
	mov	x1, x19
	bl	_comm_point_http_handle_write
	cbnz	w0, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_reclaim_http_handler
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_11
LBB0_9:
	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
LBB0_10:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	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
	b	_log_err
LBB0_11:
	ldr	x0, [x19, #16]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x4, [x19, #16]
Lloh18:
	adrp	x8, _NETEVENT_CLOSED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETEVENT_CLOSED@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_http,8,3                  ; @comm_http
	.comm	_UB_EV_TIMEOUT,2,1              ; @UB_EV_TIMEOUT
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http took too long, dropped"

	.comm	_NETEVENT_TIMEOUT,4,2           ; @NETEVENT_TIMEOUT
	.comm	_UB_EV_READ,2,1                 ; @UB_EV_READ
	.comm	_NETEVENT_CLOSED,4,2            ; @NETEVENT_CLOSED
	.comm	_UB_EV_WRITE,2,1                ; @UB_EV_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"Ignored event %d for httphdl."

.subsections_via_symbols
