	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_policy
_get_policy:                            ## @get_policy
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CTL_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_PF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_IPV6CTL_ADDRCTLPOLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	%rax, %r13
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_nitems
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	-72(%rbp), %r14
	andq	$-4, %r14
	addq	%r13, %r14
	addq	$4, %r13
	cmpq	%r13, %r14
	jae	LBB0_9
LBB0_13:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_14
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_pc_entry@GOTPCREL(%rip), %r15
	movq	_policyhead@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-4(%r13), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	addq	$4, %r13
	cmpq	%r14, %r13
	ja	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
	jmp	LBB0_12
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_NET,4,2                    ## @CTL_NET
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6CTL_ADDRCTLPOLICY,4,2      ## @IPV6CTL_ADDRCTLPOLICY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl(IPV6CTL_ADDRCTLPOLICY)"

L_.str.2:                               ## @.str.2
	.asciz	"malloc failed"

L_.str.3:                               ## @.str.3
	.asciz	"malloc failed\n"

	.comm	_policyhead,4,2                 ## @policyhead
	.comm	_pc_entry,4,2                   ## @pc_entry
L_str:                                  ## @str
	.asciz	"no source-address-selection policy is installed"

	.no_dead_strip	_get_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_policy
_get_policy:                            ; @get_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _CTL_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_NET@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _IPPROTO_IPV6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPPROTO_IPV6@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IPV6CTL_ADDRCTLPOLICY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPV6CTL_ADDRCTLPOLICY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	add	x0, sp, #8
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #8
	mov	x3, sp
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	x0, [sp]
	cbz	x0, LBB0_9
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	add	x0, sp, #8
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #8
	mov	x3, sp
	mov	x2, x19
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	x8, [sp]
	and	x8, x8, #0xfffffffffffffffc
	add	x23, x19, #4
	add	x24, x19, x8
	cmp	x24, x23
	b.hs	LBB0_12
LBB0_7:
	mov	x0, x19
	bl	_free
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x0, [sp]
	cbnz	x0, LBB0_2
LBB0_9:
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_10:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
Lloh26:
	adrp	x20, l_.str.3@PAGE
Lloh27:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh28:
	adrp	x25, _pc_entry@GOTPAGE
Lloh29:
	ldr	x25, [x25, _pc_entry@GOTPAGEOFF]
Lloh30:
	adrp	x21, _policyhead@GOTPAGE
Lloh31:
	ldr	x21, [x21, _policyhead@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x23, #-4]
	str	w8, [x22]
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	add	x23, x23, #4
	cmp	x23, x24
	b.hi	LBB0_7
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_errx
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_NET,4,2                    ; @CTL_NET
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6CTL_ADDRCTLPOLICY,4,2      ; @IPV6CTL_ADDRCTLPOLICY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl(IPV6CTL_ADDRCTLPOLICY)"

l_.str.2:                               ; @.str.2
	.asciz	"malloc failed"

l_.str.3:                               ; @.str.3
	.asciz	"malloc failed\n"

	.comm	_policyhead,4,2                 ; @policyhead
	.comm	_pc_entry,4,2                   ; @pc_entry
l_str:                                  ; @str
	.asciz	"no source-address-selection policy is installed"

	.no_dead_strip	_get_policy
.subsections_via_symbols
