	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_autobind
_unix_autobind:                         ## @unix_autobind
	.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, %r13
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_sock_net
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_unix_sk
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	xorl	%r14d, %r14d
	cmpq	$0, 8(%r15)
	jne	LBB0_7
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$50, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	L_.str(%rip), %r14
	movq	_unix_table_lock@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	incq	%rdi
	movl	_unix_autobind.ordernum(%rip), %edx
	movq	%r14, %rsi
	callq	_sprintf
	leaq	3(%rax), %rsi
	movq	%rsi, 8(%rbx)
	movq	16(%rbx), %rdi
	xorl	%edx, %edx
	callq	_csum_partial
	movl	%eax, %edi
	callq	_unix_hash_fold
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_spin_lock
	movl	_unix_autobind.ordernum(%rip), %eax
	incl	%eax
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	movl	%eax, _unix_autobind.ordernum(%rip)
	movq	16(%rbx), %rsi
	movq	(%rbx), %r8
	movq	8(%rbx), %rdx
	movl	(%r13), %ecx
	movq	%r12, %rdi
	callq	___unix_find_socket_byname
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock
	cmpb	$0, _unix_autobind.ordernum(%rip)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_yield
	jmp	LBB0_3
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	xorq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	___unix_remove_socket
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, 8(%r15)
	movq	_unix_socket_table@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	%r14, %rsi
	callq	___unix_insert_socket
	movq	_unix_table_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @unix_autobind.ordernum
_unix_autobind.ordernum:
	.long	1                               ## 0x1

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%05x"

	.comm	_unix_table_lock,4,2            ## @unix_table_lock
	.comm	_unix_socket_table,8,3          ## @unix_socket_table
	.no_dead_strip	_unix_autobind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_autobind
_unix_autobind:                         ; @unix_autobind
	.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
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_sock_net
	mov	x22, x0
	mov	x0, x20
	bl	_unix_sk
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #50
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x23, x0
Lloh6:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x0, #16]
	str	w8, [x9, #8]
	add	x0, x0, #24
	mov	w1, #1
	bl	_atomic_set
	adrp	x26, _unix_autobind.ordernum@PAGE
Lloh9:
	adrp	x24, l_.str@PAGE
Lloh10:
	add	x24, x24, l_.str@PAGEOFF
Lloh11:
	adrp	x25, _unix_table_lock@GOTPAGE
Lloh12:
	ldr	x25, [x25, _unix_table_lock@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	add	x0, x8, #1
	ldr	w2, [x26, _unix_autobind.ordernum@PAGEOFF]
	mov	x1, x24
	bl	_sprintf
	add	x1, x0, #3
	str	x1, [x23, #8]
	ldr	x0, [x23, #16]
	mov	w2, #0
	bl	_csum_partial
	bl	_unix_hash_fold
	str	x0, [x23]
	mov	x0, x25
	bl	_spin_lock
	ldr	w8, [x26, _unix_autobind.ordernum@PAGEOFF]
	add	w8, w8, #1
	and	w8, w8, #0xfffff
	str	w8, [x26, _unix_autobind.ordernum@PAGEOFF]
	ldp	x2, x1, [x23, #8]
	ldr	w3, [x21]
	ldr	x4, [x23]
	mov	x0, x22
	bl	___unix_find_socket_byname
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_spin_unlock
	ldrb	w8, [x26, _unix_autobind.ordernum@PAGEOFF]
	cbnz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_yield
	b	LBB0_3
LBB0_6:
	ldr	x8, [x20]
	ldr	x9, [x23]
	eor	x8, x9, x8
	str	x8, [x23]
	mov	x0, x20
	bl	___unix_remove_socket
	str	x23, [x19, #8]
Lloh13:
	adrp	x8, _unix_socket_table@GOTPAGE
Lloh14:
	ldr	x8, [x8, _unix_socket_table@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x0, x8, x9, lsl #2
	mov	x1, x20
	bl	___unix_insert_socket
Lloh16:
	adrp	x0, _unix_table_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _unix_table_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	neg	w20, w24
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @unix_autobind.ordernum
_unix_autobind.ordernum:
	.long	1                               ; 0x1

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%05x"

	.comm	_unix_table_lock,4,2            ; @unix_table_lock
	.comm	_unix_socket_table,8,3          ; @unix_socket_table
	.no_dead_strip	_unix_autobind
.subsections_via_symbols
