	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bind_test
_bind_test:                             ## @bind_test
	.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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %r12d
	movq	_SOCK_NAME_ONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	(%r13), %eax
	jge	LBB0_5
## %bb.2:
	leaq	-64(%rbp), %rdi
	movl	$12, %esi
	callq	_bzero
	movl	$12, -64(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movslq	-60(%rbp), %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	$4, %eax
	jl	LBB0_12
## %bb.3:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_warn
LBB0_7:
	movl	%r12d, %edi
LBB0_8:
	callq	_close
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_33
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-64(%rbp), %rsi
	movl	%r12d, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_22
## %bb.13:
	movq	%r14, %rdi
	callq	_push_path
	leaq	-64(%rbp), %rsi
	movl	%r12d, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.15:
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_25
## %bb.16:
	movl	%eax, %r15d
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	je	LBB0_26
## %bb.17:
	movq	(%rbx), %rax
	movq	_EADDRINUSE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_27
## %bb.18:
	movl	%r12d, %edi
	callq	_close
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	je	LBB0_29
## %bb.19:
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_30
## %bb.20:
	movq	%r14, %rdi
	callq	_unlink
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_31
## %bb.21:
	movl	%r15d, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_22:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_6
LBB0_23:
	leaq	L_.str.6(%rip), %rdi
	callq	_warnx
	jmp	LBB0_7
LBB0_24:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_6
LBB0_25:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_26:
	leaq	L_.str.8(%rip), %rdi
	callq	_warnx
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.7(%rip), %rdi
	callq	_warn
LBB0_28:
	movl	%r12d, %edi
	callq	_close
	movl	%r15d, %edi
	jmp	LBB0_8
LBB0_29:
	leaq	L_.str.9(%rip), %rdi
	callq	_warnx
	movl	%r15d, %edi
	jmp	LBB0_8
LBB0_30:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str.11(%rip), %rdi
LBB0_32:
	callq	_warn
	movl	%r15d, %edi
	jmp	LBB0_8
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bind_test: socket(PF_UNIX, SOCK_STREAM, 0)"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_SOCK_NAME_ONE,8,3              ## @SOCK_NAME_ONE
L_.str.2:                               ## @.str.2
	.asciz	"bind_test: snprintf(socket_path)"

	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"bind_test: snprintf(sun.sun_path)"

L_.str.5:                               ## @.str.5
	.asciz	"bind_test: bind(sun) #1"

L_.str.6:                               ## @.str.6
	.asciz	"bind_test: bind(sun) #2 succeeded"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"bind_test: bind(sun) #2"

L_.str.8:                               ## @.str.8
	.asciz	"bind_test: bind(sun) #3 succeeded"

	.comm	_EADDRINUSE,8,3                 ## @EADDRINUSE
L_.str.9:                               ## @.str.9
	.asciz	"bind_test: bind(sun) #4 succeeded"

L_.str.10:                              ## @.str.10
	.asciz	"bind_test: bind(sun) #4"

L_.str.11:                              ## @.str.11
	.asciz	"bind_test: bind(sun) #5"

	.no_dead_strip	_bind_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bind_test
_bind_test:                             ; @bind_test
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PATH_MAX@GOTPAGEOFF]
	ldr	w22, [x25]
	mov	x9, x22
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh7:
	adrp	x23, _PF_UNIX@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PF_UNIX@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh9:
	adrp	x24, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh11:
	adrp	x8, _SOCK_NAME_ONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_NAME_ONE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_snprintf
	add	sp, sp, #16
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.2:
	mov	w21, #12
	sub	x0, x29, #88
	mov	w1, #12
	bl	_bzero
Lloh16:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stur	w21, [x29, #-88]
	stur	w8, [x29, #-80]
	ldursw	x0, [x29, #-84]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x3, x20
	bl	_snprintf
	cmp	w0, #4
	b.lt	LBB0_12
; %bb.3:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_9
LBB0_5:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_warn
LBB0_7:
	mov	x0, x19
LBB0_8:
	bl	_close
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.11:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	sub	x1, x29, #88
	mov	x0, x19
	mov	w2, #12
	bl	_bind
	tbnz	x0, #63, LBB0_22
; %bb.13:
	mov	x0, x20
	bl	_push_path
	sub	x1, x29, #88
	mov	x0, x19
	mov	w2, #12
	bl	_bind
	cbz	x0, LBB0_23
; %bb.14:
Lloh30:
	adrp	x22, _errno@GOTPAGE
Lloh31:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh32:
	adrp	x9, _EINVAL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.15:
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_25
; %bb.16:
	mov	x21, x0
	sub	x1, x29, #88
	mov	w2, #12
	bl	_bind
	cbz	x0, LBB0_26
; %bb.17:
	ldr	x8, [x22]
Lloh35:
	adrp	x23, _EADDRINUSE@GOTPAGE
Lloh36:
	ldr	x23, [x23, _EADDRINUSE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.18:
	mov	x0, x19
	bl	_close
	sub	x1, x29, #88
	mov	x0, x21
	mov	w2, #12
	bl	_bind
	cbz	x0, LBB0_29
; %bb.19:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.20:
	mov	x0, x20
	bl	_unlink
	sub	x1, x29, #88
	mov	x0, x21
	mov	w2, #12
	bl	_bind
	tbnz	x0, #63, LBB0_31
; %bb.21:
	mov	x0, x21
	bl	_close
	mov	w0, #0
	b	LBB0_10
LBB0_22:
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_23:
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
	b	LBB0_7
LBB0_24:
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_25:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_26:
Lloh45:
	adrp	x0, l_.str.8@PAGE
Lloh46:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warnx
	b	LBB0_28
LBB0_27:
Lloh47:
	adrp	x0, l_.str.7@PAGE
Lloh48:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_warn
LBB0_28:
	mov	x0, x19
	bl	_close
	mov	x0, x21
	b	LBB0_8
LBB0_29:
Lloh49:
	adrp	x0, l_.str.9@PAGE
Lloh50:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warnx
	mov	x0, x21
	b	LBB0_8
LBB0_30:
Lloh51:
	adrp	x0, l_.str.10@PAGE
Lloh52:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_32
LBB0_31:
Lloh53:
	adrp	x0, l_.str.11@PAGE
Lloh54:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_32:
	bl	_warn
	mov	x0, x21
	b	LBB0_8
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bind_test: socket(PF_UNIX, SOCK_STREAM, 0)"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_SOCK_NAME_ONE,8,3              ; @SOCK_NAME_ONE
l_.str.2:                               ; @.str.2
	.asciz	"bind_test: snprintf(socket_path)"

	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"bind_test: snprintf(sun.sun_path)"

l_.str.5:                               ; @.str.5
	.asciz	"bind_test: bind(sun) #1"

l_.str.6:                               ; @.str.6
	.asciz	"bind_test: bind(sun) #2 succeeded"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"bind_test: bind(sun) #2"

l_.str.8:                               ; @.str.8
	.asciz	"bind_test: bind(sun) #3 succeeded"

	.comm	_EADDRINUSE,8,3                 ; @EADDRINUSE
l_.str.9:                               ; @.str.9
	.asciz	"bind_test: bind(sun) #4 succeeded"

l_.str.10:                              ; @.str.10
	.asciz	"bind_test: bind(sun) #4"

l_.str.11:                              ; @.str.11
	.asciz	"bind_test: bind(sun) #5"

	.no_dead_strip	_bind_test
.subsections_via_symbols
