	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix_bind                      ## -- Begin function unix_bind
	.p2align	4, 0x90
_unix_bind:                             ## @unix_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_AF_UNIX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_uflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	cmpl	$4, %eax
	jb	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	_close
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_6:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_SUN_LEN
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movl	%ebx, %r14d
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %edi
	callq	_close
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_uflag,8,3                      ## @uflag
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix_bind                      ; -- Begin function unix_bind
	.p2align	2
_unix_bind:                             ; @unix_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	x20, x0
Lloh0:
	adrp	x21, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AF_UNIX@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _uflag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uflag@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x10, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SOCK_STREAM@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x21]
	str	w8, [sp, #12]
	ldr	w0, [sp, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	cmp	w0, #4
	b.lo	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_close
Lloh9:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	b	LBB0_5
LBB0_3:
	add	x0, sp, #8
	bl	_SUN_LEN
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_bind
	tbz	x0, #63, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_close
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_uflag,8,3                      ; @uflag
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
