	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_socket_getnumerichost      ## -- Begin function h2o_socket_getnumerichost
	.p2align	4, 0x90
_h2o_socket_getnumerichost:             ## @h2o_socket_getnumerichost
	.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	%rdx, %r14
	movq	(%rdi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, %ecx
	movzbl	%ah, %ebx
	movzbl	%al, %r9d
	movl	%eax, %edx
	sarl	$24, %edx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %r8d
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_1:
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getnameinfo
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strlen                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d.%d.%d"

	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_socket_getnumerichost      ; -- Begin function h2o_socket_getnumerichost
	.p2align	2
_h2o_socket_getnumerichost:             ; @h2o_socket_getnumerichost
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x8
	bl	_htonl
	asr	w2, w0, #24
	ubfx	w3, w0, #16, #8
	ubfx	w4, w0, #8, #8
	and	w5, w0, #0xff
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sprintf
LBB0_2:
Lloh5:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	mov	x2, x19
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strlen
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d.%d.%d"

	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
.subsections_via_symbols
