	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_bind                   ## -- Begin function uip_tcp_bind
	.p2align	4, 0x90
_uip_tcp_bind:                          ## @uip_tcp_bind
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_uip_tcp_newport
	movq	%rax, %r12
LBB0_2:
	movq	_uip_tcp_listen_pcbs@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	movq	_UIP_ERR_USE@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%r14)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	jne	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ip_addr_cmp
	testq	%rax, %rax
	je	LBB0_8
	jmp	LBB0_19
LBB0_9:
	movq	_uip_tcp_active_pcbs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.10:
	movq	_UIP_ERR_USE@GOTPCREL(%rip), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rbx)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ip_addr_cmp
	testq	%rax, %rax
	je	LBB0_15
	jmp	LBB0_19
LBB0_16:
	movq	%r15, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_18
## %bb.17:
	movl	(%r15), %eax
	movl	%eax, 8(%rcx)
LBB0_18:
	movq	%r12, (%rcx)
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %r13
LBB0_19:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uip_tcp_listen_pcbs,8,3        ## @uip_tcp_listen_pcbs
	.comm	_UIP_ERR_USE,4,2                ## @UIP_ERR_USE
	.comm	_uip_tcp_active_pcbs,8,3        ## @uip_tcp_active_pcbs
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_bind                   ; -- Begin function uip_tcp_bind
	.p2align	2
_uip_tcp_bind:                          ; @uip_tcp_bind
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbnz	x2, LBB0_2
; %bb.1:
	bl	_uip_tcp_newport
	mov	x21, x0
LBB0_2:
Lloh0:
	adrp	x8, _uip_tcp_listen_pcbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uip_tcp_listen_pcbs@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	cbz	x24, LBB0_9
; %bb.3:
Lloh3:
	adrp	x23, _UIP_ERR_USE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _UIP_ERR_USE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x24, #8
	mov	x0, x22
	bl	_ip_addr_isany
	cbnz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_ip_addr_isany
	cbnz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_ip_addr_cmp
	cbz	x0, LBB0_4
	b	LBB0_19
LBB0_9:
Lloh5:
	adrp	x8, _uip_tcp_active_pcbs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _uip_tcp_active_pcbs@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
	cbz	x24, LBB0_16
; %bb.10:
Lloh8:
	adrp	x23, _UIP_ERR_USE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _UIP_ERR_USE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x24, #8
	mov	x0, x22
	bl	_ip_addr_isany
	cbnz	x0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_ip_addr_isany
	cbnz	x0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_ip_addr_cmp
	cbz	x0, LBB0_11
	b	LBB0_19
LBB0_16:
	mov	x0, x20
	bl	_ip_addr_isany
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	w8, [x20]
	str	w8, [x19, #8]
LBB0_18:
	str	x21, [x19]
Lloh10:
	adrp	x23, _UIP_ERR_OK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _UIP_ERR_OK@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x23]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_uip_tcp_listen_pcbs,8,3        ; @uip_tcp_listen_pcbs
	.comm	_UIP_ERR_USE,4,2                ; @UIP_ERR_USE
	.comm	_uip_tcp_active_pcbs,8,3        ; @uip_tcp_active_pcbs
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
.subsections_via_symbols
