	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ipv6_addr_type               ## -- Begin function __ipv6_addr_type
	.p2align	4, 0x90
___ipv6_addr_type:                      ## @__ipv6_addr_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	(%r15), %r12d
	movl	$-536870912, %edi               ## imm = 0xE0000000
	callq	_htonl
	movl	%eax, %r13d
	movl	%eax, %ebx
	andl	%r12d, %ebx
	xorl	%edi, %edi
	callq	_htonl
	cmpl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	cmpl	%r13d, %ebx
	je	LBB0_2
LBB0_19:
	movq	_IPV6_ADDR_UNICAST@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %ebx
LBB0_21:
	movq	_IPV6_ADDR_SCOPE_GLOBAL@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %edi
	callq	_IPV6_ADDR_SCOPE_TYPE
	jmp	LBB0_23
LBB0_2:
	movl	$-16777216, %edi                ## imm = 0xFF000000
	callq	_htonl
	movl	%r12d, %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movq	_IPV6_ADDR_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IPV6_ADDR_MC_SCOPE
	movl	%eax, %edi
	callq	_ipv6_addr_scope2type
LBB0_23:
	orl	%ebx, %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$-4194304, %edi                 ## imm = 0xFFC00000
	callq	_htonl
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movl	$-25165824, %edi                ## imm = 0xFE800000
	callq	_htonl
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.5:
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_IPV6_ADDR_UNICAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_IPV6_ADDR_SCOPE_LINKLOCAL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_7:
	movl	$-20971520, %edi                ## imm = 0xFEC00000
	callq	_htonl
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.8:
	movq	_IPV6_ADDR_SITELOCAL@GOTPCREL(%rip), %rax
	movq	_IPV6_ADDR_UNICAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_IPV6_ADDR_SCOPE_SITELOCAL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_9:
	movl	$-33554432, %edi                ## imm = 0xFE000000
	callq	_htonl
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movl	$-67108864, %edi                ## imm = 0xFC000000
	callq	_htonl
	cmpl	%eax, %ebx
	je	LBB0_19
## %bb.10:
	orl	4(%r15), %r12d
	jne	LBB0_19
## %bb.11:
	movl	8(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.17:
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htonl
	cmpl	%eax, %ebx
	jne	LBB0_19
## %bb.18:
	movq	_IPV6_ADDR_MAPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_12:
	movl	12(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.14:
	movl	$1, %edi
	callq	_htonl
	cmpl	%eax, %ebx
	jne	LBB0_16
## %bb.15:
	movq	_IPV6_ADDR_LOOPBACK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	_IPV6_ADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_16:
	movq	_IPV6_ADDR_COMPATv4@GOTPCREL(%rip), %rax
	movq	_IPV6_ADDR_UNICAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_IPV6_ADDR_UNICAST,4,2          ## @IPV6_ADDR_UNICAST
	.comm	_IPV6_ADDR_SCOPE_GLOBAL,4,2     ## @IPV6_ADDR_SCOPE_GLOBAL
	.comm	_IPV6_ADDR_MULTICAST,4,2        ## @IPV6_ADDR_MULTICAST
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
	.comm	_IPV6_ADDR_SCOPE_LINKLOCAL,4,2  ## @IPV6_ADDR_SCOPE_LINKLOCAL
	.comm	_IPV6_ADDR_SITELOCAL,4,2        ## @IPV6_ADDR_SITELOCAL
	.comm	_IPV6_ADDR_SCOPE_SITELOCAL,4,2  ## @IPV6_ADDR_SCOPE_SITELOCAL
	.comm	_IPV6_ADDR_ANY,4,2              ## @IPV6_ADDR_ANY
	.comm	_IPV6_ADDR_LOOPBACK,4,2         ## @IPV6_ADDR_LOOPBACK
	.comm	_IPV6_ADDR_COMPATv4,4,2         ## @IPV6_ADDR_COMPATv4
	.comm	_IPV6_ADDR_MAPPED,4,2           ## @IPV6_ADDR_MAPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ipv6_addr_type               ; -- Begin function __ipv6_addr_type
	.p2align	2
___ipv6_addr_type:                      ; @__ipv6_addr_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w22, [x21]
	mov	w0, #-536870912
	bl	_htonl
	mov	x20, x0
	and	w23, w0, w22
	mov	w0, #0
	bl	_htonl
	cmp	w23, w0
	ccmp	w23, w20, #4, ne
	b.ne	LBB0_11
; %bb.1:
	mov	w0, #-16777216
	bl	_htonl
	bics	wzr, w0, w22
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IPV6_ADDR_MULTICAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPV6_ADDR_MULTICAST@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_IPV6_ADDR_MC_SCOPE
	bl	_ipv6_addr_scope2type
	orr	w0, w0, w20
	b	LBB0_13
LBB0_3:
	mov	w19, #-25165824
	mov	w0, #-4194304
	bl	_htonl
	and	w20, w0, w22
	mov	w0, #-25165824
	bl	_htonl
	cmp	w20, w0
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
LBB0_5:
Lloh5:
	adrp	x9, _IPV6_ADDR_UNICAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPV6_ADDR_UNICAST@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh8:
	adrp	x8, _IPV6_ADDR_SCOPE_LINKLOCAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_LINKLOCAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	add	w0, w19, #1024, lsl #12         ; =4194304
	bl	_htonl
	cmp	w20, w0
	b.ne	LBB0_9
; %bb.7:
Lloh10:
	adrp	x8, _IPV6_ADDR_SITELOCAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPV6_ADDR_SITELOCAL@GOTPAGEOFF]
Lloh12:
	adrp	x9, _IPV6_ADDR_UNICAST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPV6_ADDR_UNICAST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh16:
	adrp	x8, _IPV6_ADDR_SCOPE_SITELOCAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_SITELOCAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_IPV6_ADDR_SCOPE_TYPE
	orr	w0, w19, w0
	b	LBB0_13
LBB0_9:
	mov	w0, #-33554432
	bl	_htonl
	and	w19, w0, w22
	mov	w0, #-67108864
	bl	_htonl
	cmp	w19, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x21, #4]
	orr	w8, w8, w22
	cbz	w8, LBB0_14
LBB0_11:
Lloh18:
	adrp	x8, _IPV6_ADDR_UNICAST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IPV6_ADDR_UNICAST@GOTPAGEOFF]
LBB0_12:
	ldr	w19, [x8]
Lloh20:
	adrp	x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_IPV6_ADDR_SCOPE_TYPE
	orr	w0, w0, w19
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w19, [x21, #8]
	cbz	w19, LBB0_17
; %bb.15:
	mov	w0, #65535
	bl	_htonl
	cmp	w19, w0
	b.ne	LBB0_11
; %bb.16:
Lloh23:
	adrp	x8, _IPV6_ADDR_MAPPED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IPV6_ADDR_MAPPED@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
	ldr	w19, [x21, #12]
	cbz	w19, LBB0_20
; %bb.18:
	mov	w0, #1
	bl	_htonl
	cmp	w19, w0
	b.ne	LBB0_21
; %bb.19:
Lloh25:
	adrp	x8, _IPV6_ADDR_LOOPBACK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IPV6_ADDR_LOOPBACK@GOTPAGEOFF]
	b	LBB0_5
LBB0_20:
Lloh27:
	adrp	x8, _IPV6_ADDR_ANY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IPV6_ADDR_ANY@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_21:
Lloh30:
	adrp	x8, _IPV6_ADDR_COMPATv4@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IPV6_ADDR_COMPATv4@GOTPAGEOFF]
Lloh32:
	adrp	x9, _IPV6_ADDR_UNICAST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IPV6_ADDR_UNICAST@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh36:
	adrp	x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_IPV6_ADDR_UNICAST,4,2          ; @IPV6_ADDR_UNICAST
	.comm	_IPV6_ADDR_SCOPE_GLOBAL,4,2     ; @IPV6_ADDR_SCOPE_GLOBAL
	.comm	_IPV6_ADDR_MULTICAST,4,2        ; @IPV6_ADDR_MULTICAST
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
	.comm	_IPV6_ADDR_SCOPE_LINKLOCAL,4,2  ; @IPV6_ADDR_SCOPE_LINKLOCAL
	.comm	_IPV6_ADDR_SITELOCAL,4,2        ; @IPV6_ADDR_SITELOCAL
	.comm	_IPV6_ADDR_SCOPE_SITELOCAL,4,2  ; @IPV6_ADDR_SCOPE_SITELOCAL
	.comm	_IPV6_ADDR_ANY,4,2              ; @IPV6_ADDR_ANY
	.comm	_IPV6_ADDR_LOOPBACK,4,2         ; @IPV6_ADDR_LOOPBACK
	.comm	_IPV6_ADDR_COMPATv4,4,2         ; @IPV6_ADDR_COMPATv4
	.comm	_IPV6_ADDR_MAPPED,4,2           ; @IPV6_ADDR_MAPPED
.subsections_via_symbols
