	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function so_setfib
_so_setfib:                             ## @so_setfib
	.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	%rcx, %r15
	movq	%rdx, %r12
	movl	%edi, %r14d
	movl	%esi, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_SETFIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	-44(%rbp), %ebx
	testl	%ebx, %ebx
	sets	%dl
	movq	_rt_numfibs@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setg	%cl
	orb	%dl, %cl
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	testb	%cl, %cl
	je	LBB0_5
## %bb.4:
	movq	_testno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_t_dom@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rdx
	movq	_t_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rcx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	testb	%cl, %cl
	je	LBB0_6
LBB0_2:
	movq	_testno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_t_dom@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rdx
	movq	_t_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rcx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_5:
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	_t_dom@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %r12
	movq	_t_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %r15
	movq	_testno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
LBB0_10:
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_11
LBB0_7:
	callq	_strerror
	movq	%rax, %r10
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	pushq	%r10
LBB0_8:
	pushq	%rbx
	callq	_printf
	addq	$16, %rsp
LBB0_11:
	movq	_testno@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_SETFIB,4,2                  ## @SO_SETFIB
	.comm	_rt_numfibs,4,2                 ## @rt_numfibs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ok %d %s_%s_%d\n"

	.comm	_testno,4,2                     ## @testno
	.comm	_t_dom,8,3                      ## @t_dom
	.comm	_t_type,8,3                     ## @t_type
L_.str.1:                               ## @.str.1
	.asciz	"not ok %d %s_%s_%d # setsockopt(%d, SOL_SOCKET, SO_SETFIB, %d, ..) unexpectedly succeeded\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"not ok %d %s_%s_%d # setsockopt(%d, SOL_SOCKET, SO_SETFIB, %d, ..) unexpected error: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"not ok %d %s_%s_%d\n"

	.no_dead_strip	_so_setfib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function so_setfib
_so_setfib:                             ; @so_setfib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x22, x2
	mov	x20, x0
	str	w1, [sp, #28]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_SETFIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_SETFIB@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	w4, #4
	bl	_setsockopt
	ldr	w19, [sp, #28]
	cmp	w19, #0
Lloh6:
	adrp	x8, _rt_numfibs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rt_numfibs@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w19, w8, #0, ge
	cset	w8, gt
Lloh9:
	adrp	x24, _testno@GOTPAGE
Lloh10:
	ldr	x24, [x24, _testno@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cbz	w8, LBB0_5
; %bb.2:
Lloh11:
	adrp	x8, _t_dom@GOTPAGE
Lloh12:
	ldr	x8, [x8, _t_dom@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x2, [x8, x22, lsl #3]
	ldr	w1, [x24]
Lloh14:
	adrp	x8, _t_type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _t_type@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x3, [x8, x21, lsl #3]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	stp	x20, x19, [sp]
	b	LBB0_10
LBB0_3:
	cbz	w8, LBB0_6
LBB0_4:
Lloh19:
	adrp	x8, _t_dom@GOTPAGE
Lloh20:
	ldr	x8, [x8, _t_dom@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x2, [x8, x22, lsl #3]
	ldr	w1, [x24]
Lloh22:
	adrp	x8, _t_type@GOTPAGE
Lloh23:
	ldr	x8, [x8, _t_type@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x3, [x8, x21, lsl #3]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
	cbz	w0, LBB0_4
LBB0_6:
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	w23, [x24]
Lloh33:
	adrp	x9, _t_dom@GOTPAGE
Lloh34:
	ldr	x9, [x9, _t_dom@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	ldr	x22, [x9, x22, lsl #3]
Lloh36:
	adrp	x9, _t_type@GOTPAGE
Lloh37:
	ldr	x9, [x9, _t_type@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	ldr	x21, [x9, x21, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
	bl	_strerror
	str	x0, [sp, #16]
	mov	x8, x19
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	stp	x20, x8, [sp]
LBB0_9:
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
LBB0_10:
	mov	x4, x19
	bl	_printf
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_SETFIB,4,2                  ; @SO_SETFIB
	.comm	_rt_numfibs,4,2                 ; @rt_numfibs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ok %d %s_%s_%d\n"

	.comm	_testno,4,2                     ; @testno
	.comm	_t_dom,8,3                      ; @t_dom
	.comm	_t_type,8,3                     ; @t_type
l_.str.1:                               ; @.str.1
	.asciz	"not ok %d %s_%s_%d # setsockopt(%d, SOL_SOCKET, SO_SETFIB, %d, ..) unexpectedly succeeded\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"not ok %d %s_%s_%d # setsockopt(%d, SOL_SOCKET, SO_SETFIB, %d, ..) unexpected error: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"not ok %d %s_%s_%d\n"

	.no_dead_strip	_so_setfib
.subsections_via_symbols
