	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bindresvport                   ## -- Begin function bindresvport
	.p2align	4, 0x90
_bindresvport:                          ## @bindresvport
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%rsi), %ebx
	movl	4(%rsi), %r13d
	cmpl	$129, %ebx
	jne	LBB0_15
LBB0_5:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IP_PORTRANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IP_PORTRANGE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	-48(%rbp), %r12
	movl	$129, (%r12)
	movl	%r13d, 4(%r12)
	cmpq	$0, (%r12)
	movq	%r12, %rsi
	je	LBB0_6
LBB0_9:
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sobind
	movl	%eax, %ebx
	cmpq	$0, (%r12)
	jne	LBB0_12
## %bb.10:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movq	_SOPT_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	_sosetopt
	jmp	LBB0_12
LBB0_1:
	movl	8(%r14), %edi
	callq	_CURVNET_SET
	movq	(%r14), %rax
	movq	(%rax), %rax
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_CURVNET_RESTORE
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	-48(%rbp), %rdi
	movl	(%rdi), %ebx
	movl	4(%rdi), %r13d
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	cmpl	$129, %ebx
	je	LBB0_5
LBB0_15:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	leaq	-88(%rbp), %r13
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_bzero
	movq	_SOPT_GET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	%ebx, -88(%rbp)
	movl	%r15d, -84(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -72(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sogetopt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	_SOPT_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	leaq	-52(%rbp), %rax
	movq	%rax, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	_sosetopt
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdi
	movq	_M_SONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-48(%rbp), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_PORTRANGE,4,2               ## @IP_PORTRANGE
	.comm	_IP_PORTRANGE_LOW,4,2           ## @IP_PORTRANGE_LOW
	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_SOPT_GET,8,3                   ## @SOPT_GET
	.comm	_SOPT_SET,8,3                   ## @SOPT_SET
	.comm	_curthread,4,2                  ## @curthread
	.comm	_M_SONAME,4,2                   ## @M_SONAME
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_PORTRANGE,4,2             ## @IPV6_PORTRANGE
	.comm	_IPV6_PORTRANGE_LOW,4,2         ## @IPV6_PORTRANGE_LOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bindresvport                   ; -- Begin function bindresvport
	.p2align	2
_bindresvport:                          ; @bindresvport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x1, [sp, #56]
	cbz	x1, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldp	w22, w20, [x1]
	cmp	w22, #129
	b.ne	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _IPPROTO_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_IP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IP_PORTRANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IP_PORTRANGE@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
Lloh8:
	ldr	w23, [x9]
Lloh9:
	adrp	x8, _IP_PORTRANGE_LOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IP_PORTRANGE_LOW@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x22, [sp, #56]
	mov	w8, #129
	stp	w8, w20, [x22]
	ldr	x8, [x22]
	mov	x1, x22
	cbz	x8, LBB0_9
LBB0_3:
Lloh12:
	adrp	x8, _curthread@GOTPAGE
Lloh13:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sobind
	mov	x20, x0
	ldr	x8, [x22]
	cbnz	x8, LBB0_11
; %bb.4:
	cbz	w20, LBB0_11
; %bb.5:
Lloh15:
	adrp	x8, _SOPT_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOPT_SET@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x9, sp, #52
	str	x8, [sp, #40]
	str	x9, [sp, #24]
	add	x1, sp, #16
	mov	x0, x19
	bl	_sosetopt
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_CURVNET_SET
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #56
	mov	x0, x19
	blr	x8
	mov	x20, x0
	bl	_CURVNET_RESTORE
	cbnz	w20, LBB0_13
; %bb.7:
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	x21, [x8]
	ldr	x0, [sp, #56]
	ldp	w22, w20, [x0]
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	cmp	w22, #129
	b.eq	LBB0_2
LBB0_8:
Lloh21:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_9:
	add	x0, sp, #16
	mov	w1, #32
	bl	_bzero
Lloh24:
	adrp	x8, _SOPT_GET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SOPT_GET@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	stp	w24, w23, [sp, #16]
	add	x8, sp, #52
	str	x8, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x19
	bl	_sogetopt
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, _SOPT_SET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SOPT_SET@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	add	x9, sp, #12
	str	x8, [sp, #40]
	str	x9, [sp, #24]
	add	x1, sp, #16
	mov	x0, x19
	bl	_sosetopt
	mov	x20, x0
	cbz	w0, LBB0_14
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	ldr	x0, [sp, #56]
Lloh30:
	adrp	x8, _M_SONAME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _M_SONAME@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_free
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	ldr	x1, [sp, #56]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_PORTRANGE,4,2               ; @IP_PORTRANGE
	.comm	_IP_PORTRANGE_LOW,4,2           ; @IP_PORTRANGE_LOW
	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_SOPT_GET,8,3                   ; @SOPT_GET
	.comm	_SOPT_SET,8,3                   ; @SOPT_SET
	.comm	_curthread,4,2                  ; @curthread
	.comm	_M_SONAME,4,2                   ; @M_SONAME
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_PORTRANGE,4,2             ; @IPV6_PORTRANGE
	.comm	_IPV6_PORTRANGE_LOW,4,2         ; @IPV6_PORTRANGE_LOW
.subsections_via_symbols
