	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bindresvport_sa                ## -- Begin function bindresvport_sa
	.p2align	4, 0x90
_bindresvport_sa:                       ## @bindresvport_sa
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	movl	(%rsi), %ebx
	cmpl	$129, %ebx
	jne	LBB0_10
LBB0_2:
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IP_PORTRANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IP_PORTRANGE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$8, -44(%rbp)
	movabsq	$34359738497, %rax              ## imm = 0x800000081
	movq	%rax, (%r12)
	movl	$8, %edx
	xorl	%eax, %eax
	testb	%al, %al
	jne	LBB0_11
LBB0_3:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__bind
	movl	%eax, %r15d
	cmpq	$0, (%r12)
	jne	LBB0_19
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.5:
	leaq	-48(%rbp), %rax
	cmpq	%rax, %r12
	je	LBB0_19
## %bb.6:
	movl	%edx, %ebx
	movq	%rcx, %r13
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__getsockname
	testl	%eax, %eax
	jns	LBB0_19
## %bb.7:
	movl	%ebx, (%r13)
	jmp	LBB0_19
LBB0_8:
	movl	$4, -44(%rbp)
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__getsockname
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.9:
	movl	-48(%rbp), %ebx
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$129, %ebx
	je	LBB0_2
LBB0_10:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r15d
	jmp	LBB0_19
LBB0_11:
	movl	$4, -52(%rbp)
	leaq	-60(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	__getsockopt
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	$4, %r8d
	callq	__setsockopt
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	movl	-44(%rbp), %edx
	jmp	LBB0_3
LBB0_14:
	movl	$-1, %r15d
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %r15d
	jmp	LBB0_19
LBB0_16:
	movl	%edx, %r12d
	leaq	-60(%rbp), %rcx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	$4, %r8d
	callq	__setsockopt
	testl	%eax, %eax
	jns	LBB0_19
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
LBB0_19:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_errno,4,2                      ## @errno
	.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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bindresvport_sa
lCPI0_0:
	.long	129                             ; 0x81
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bindresvport_sa
	.p2align	2
_bindresvport_sa:                       ; @bindresvport_sa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x1
	ldr	w20, [x1]
	cmp	w20, #129
	b.ne	LBB0_8
LBB0_2:
Lloh0:
	adrp	x8, _IPPROTO_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_IP@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _IP_PORTRANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IP_PORTRANGE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	w8, #8
	str	w8, [sp, #4]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	__bind
	mov	x20, x0
	ldr	x8, [x21]
	cbnz	x8, LBB0_12
; %bb.3:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	tbnz	w20, #31, LBB0_11
; %bb.4:
	add	x8, sp, #8
	cmp	x21, x8
	b.eq	LBB0_12
; %bb.5:
	add	x2, sp, #4
	mov	x0, x19
	mov	x1, x21
	bl	__getsockname
	tbz	w0, #31, LBB0_12
	b	LBB0_9
LBB0_6:
	mov	w8, #4
	str	w8, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	bl	__getsockname
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.7:
	add	x21, sp, #8
	ldp	w2, w20, [sp, #4]
	add	x0, sp, #8
	mov	w1, #0
	bl	_memset
	cmp	w20, #129
	b.eq	LBB0_2
LBB0_8:
Lloh11:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	mov	w20, #-1
LBB0_9:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	str	w24, [x8]
	b	LBB0_12
LBB0_10:
	mov	w20, #-1
	b	LBB0_12
LBB0_11:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w4, #4
	bl	__setsockopt
	tbnz	w0, #31, LBB0_9
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.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	_errno,4,2                      ; @errno
	.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
