	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_servconnection
_init_servconnection:                   ## @init_servconnection
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AF_INET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	_http_sock@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_http_port@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_htons
	movl	%eax, -36(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	(%r15), %rdi
	leaq	-40(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_init_servconnection.cold.1
	jmp	LBB0_6
LBB0_3:
	callq	_init_servconnection.cold.2
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function init_servconnection.cold.1
_init_servconnection.cold.1:            ## @init_servconnection.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function init_servconnection.cold.2
_init_servconnection.cold.2:            ## @init_servconnection.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_http_sock,8,3                  ## @http_sock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_http_port,4,2                  ## @http_port
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
L_.str.1:                               ## @.str.1
	.asciz	"bind socket"

	.comm	_verbose,8,3                    ## @verbose
L_.str.2:                               ## @.str.2
	.asciz	"simple_httpd:%d\n"

	.no_dead_strip	_init_servconnection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_servconnection
_init_servconnection:                   ; @init_servconnection
	.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
Lloh0:
	adrp	x19, _AF_INET@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
Lloh5:
	adrp	x20, _http_sock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _http_sock@GOTPAGEOFF]
	str	x0, [x20]
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	str	w8, [sp, #8]
Lloh7:
	adrp	x19, _http_port@GOTPAGE
Lloh8:
	ldr	x19, [x19, _http_port@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_htons
Lloh9:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp]
	ldr	x0, [x20]
	mov	x1, sp
	mov	w2, #12
	bl	_bind
	tbnz	x0, #63, LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _verbose@GOTPAGE
Lloh13:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	bl	_init_servconnection.cold.1
LBB0_6:
	bl	_init_servconnection.cold.2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function init_servconnection.cold.1
_init_servconnection.cold.1:            ; @init_servconnection.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function init_servconnection.cold.2
_init_servconnection.cold.2:            ; @init_servconnection.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_http_sock,8,3                  ; @http_sock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_http_port,4,2                  ; @http_port
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
l_.str.1:                               ; @.str.1
	.asciz	"bind socket"

	.comm	_verbose,8,3                    ; @verbose
l_.str.2:                               ; @.str.2
	.asciz	"simple_httpd:%d\n"

	.no_dead_strip	_init_servconnection
.subsections_via_symbols
