	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_bind                       ## -- Begin function BIO_bind
	.p2align	4, 0x90
_BIO_bind:                              ## @BIO_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, -28(%rbp)
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_BIO_SOCK_REUSEADDR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SYS_F_SETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_REUSEADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_BIO_F_BIO_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_BIO_ADDR_sockaddr
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_BIO_ADDR_sockaddr_size
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_bind
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_SYS_F_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_BIND_SOCKET@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_BIOerr
	jmp	LBB0_9
LBB0_6:
	movl	$1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_BIND,4,2             ## @BIO_F_BIO_BIND
	.comm	_BIO_R_INVALID_SOCKET,4,2       ## @BIO_R_INVALID_SOCKET
	.comm	_BIO_SOCK_REUSEADDR,4,2         ## @BIO_SOCK_REUSEADDR
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_SYS_F_SETSOCKOPT,4,2           ## @SYS_F_SETSOCKOPT
	.comm	_BIO_R_UNABLE_TO_REUSEADDR,4,2  ## @BIO_R_UNABLE_TO_REUSEADDR
	.comm	_SYS_F_BIND,4,2                 ## @SYS_F_BIND
	.comm	_BIO_R_UNABLE_TO_BIND_SOCKET,4,2 ## @BIO_R_UNABLE_TO_BIND_SOCKET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_bind                       ; -- Begin function BIO_bind
	.p2align	2
_BIO_bind:                              ; @BIO_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	w8, #1
	str	w8, [sp, #12]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BIO_SOCK_REUSEADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_SOCK_REUSEADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _SYS_F_SETSOCKOPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYS_F_SETSOCKOPT@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh12:
	adrp	x8, _BIO_F_BIO_BIND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIO_F_BIO_BIND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _BIO_R_UNABLE_TO_REUSEADDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_REUSEADDR@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _BIO_F_BIO_BIND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BIO_F_BIO_BIND@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _BIO_R_INVALID_SOCKET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BIO_R_INVALID_SOCKET@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_BIO_ADDR_sockaddr
	mov	x21, x0
	mov	x0, x20
	bl	_BIO_ADDR_sockaddr_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_bind
	cbz	x0, LBB0_9
; %bb.6:
Lloh22:
	adrp	x8, _SYS_F_BIND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SYS_F_BIND@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh25:
	adrp	x8, _BIO_F_BIO_BIND@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BIO_F_BIO_BIND@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _BIO_R_UNABLE_TO_BIND_SOCKET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_BIND_SOCKET@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_BIND,4,2             ; @BIO_F_BIO_BIND
	.comm	_BIO_R_INVALID_SOCKET,4,2       ; @BIO_R_INVALID_SOCKET
	.comm	_BIO_SOCK_REUSEADDR,4,2         ; @BIO_SOCK_REUSEADDR
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_SYS_F_SETSOCKOPT,4,2           ; @SYS_F_SETSOCKOPT
	.comm	_BIO_R_UNABLE_TO_REUSEADDR,4,2  ; @BIO_R_UNABLE_TO_REUSEADDR
	.comm	_SYS_F_BIND,4,2                 ; @SYS_F_BIND
	.comm	_BIO_R_UNABLE_TO_BIND_SOCKET,4,2 ; @BIO_R_UNABLE_TO_BIND_SOCKET
.subsections_via_symbols
