	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detect_target_type             ## -- Begin function detect_target_type
	.p2align	4, 0x90
_detect_target_type:                    ## @detect_target_type
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_h2o_url_host_to_sun
	movq	_h2o_url_host_to_sun_err_is_not_unix_socket@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.4:
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	$4, (%r15)
LBB0_5:
	movq	_H2O_SOCKETPOOL_TYPE_SOCKADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$8, (%r15)
	movl	(%r14), %edi
	leaq	4(%rbx), %rsi
	callq	_h2o_hostinfo_aton
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_H2O_SOCKETPOOL_TYPE_NAMED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_h2o_url_get_port
	movl	%eax, %edi
	callq	_htons
	movl	%eax, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_url_host_to_sun_err_is_not_unix_socket,8,3 ## @h2o_url_host_to_sun_err_is_not_unix_socket
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_H2O_SOCKETPOOL_TYPE_SOCKADDR,4,2 ## @H2O_SOCKETPOOL_TYPE_SOCKADDR
	.comm	_H2O_SOCKETPOOL_TYPE_NAMED,4,2  ## @H2O_SOCKETPOOL_TYPE_NAMED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detect_target_type             ; -- Begin function detect_target_type
	.p2align	2
_detect_target_type:                    ; @detect_target_type
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w22, #4
	mov	x0, x1
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20]
	mov	x1, x19
	bl	_h2o_url_host_to_sun
Lloh0:
	adrp	x8, _h2o_url_host_to_sun_err_is_not_unix_socket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_url_host_to_sun_err_is_not_unix_socket@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	str	w22, [x21]
LBB0_2:
Lloh3:
	adrp	x8, _H2O_SOCKETPOOL_TYPE_SOCKADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_SOCKETPOOL_TYPE_SOCKADDR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _AF_INET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x1, x19
	str	w8, [x1], #4
	mov	w8, #8
	str	w8, [x21]
	ldr	w0, [x20]
	bl	_h2o_hostinfo_aton
	cbz	x0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _H2O_SOCKETPOOL_TYPE_NAMED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H2O_SOCKETPOOL_TYPE_NAMED@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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_6:
	mov	x0, x20
	bl	_h2o_url_get_port
	bl	_htons
	str	w0, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_url_host_to_sun_err_is_not_unix_socket,8,3 ; @h2o_url_host_to_sun_err_is_not_unix_socket
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_H2O_SOCKETPOOL_TYPE_SOCKADDR,4,2 ; @H2O_SOCKETPOOL_TYPE_SOCKADDR
	.comm	_H2O_SOCKETPOOL_TYPE_NAMED,4,2  ; @H2O_SOCKETPOOL_TYPE_NAMED
.subsections_via_symbols
