	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p9_fd_create_unix
_p9_fd_create_unix:                     ## @p9_fd_create_unix
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -40(%rbp)
	movq	%rsi, %rdi
	callq	_strlen
	movq	_UNIX_PATH_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_P9_EPRINTK
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_PF_UNIX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%r15, %rsi
	callq	_strcpy
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	callq	_sock_create_kern
	movq	-40(%rbp), %rdi
	movq	(%rdi), %rax
	leaq	-48(%rbp), %rsi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_p9_socket_open
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	(%r12), %r14
	movq	%r12, %rdi
	callq	_p9_conn_create
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, (%r14)
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_P9_EPRINTK
	jmp	LBB0_8
LBB0_5:
	xorl	%r14d, %r14d
	movl	%eax, %ebx
LBB0_8:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_sock_release
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIX_PATH_MAX,8,3              ## @UNIX_PATH_MAX
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p9_trans_unix: address too long: %s\n"

	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"p9_trans_unix: problem connecting socket: %s: %d\n"

	.no_dead_strip	_p9_fd_create_unix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p9_fd_create_unix
_p9_fd_create_unix:                     ; @p9_fd_create_unix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _UNIX_PATH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIX_PATH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_P9_EPRINTK
	mov	x19, #0
Lloh8:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_3
LBB0_2:
	bl	_sock_release
LBB0_3:
	mov	x0, x19
	bl	_kfree
LBB0_4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
Lloh11:
	adrp	x20, _PF_UNIX@GOTPAGE
Lloh12:
	ldr	x20, [x20, _PF_UNIX@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [sp, #20]
	mov	x1, x19
	bl	_strcpy
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	w2, #0
	bl	_sock_create_kern
	ldr	x0, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, sp, #16
	mov	w2, #7
	mov	w3, #0
	blr	x8
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	_p9_socket_open
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	x19, [x21]
	mov	x0, x21
	bl	_p9_conn_create
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x20, x0
	str	xzr, [x19]
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_9:
	mov	x20, x0
Lloh16:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_P9_EPRINTK
	b	LBB0_11
LBB0_10:
	mov	x20, x0
LBB0_11:
	mov	x19, #0
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_12:
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIX_PATH_MAX,8,3              ; @UNIX_PATH_MAX
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p9_trans_unix: address too long: %s\n"

	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"p9_trans_unix: problem connecting socket: %s: %d\n"

	.no_dead_strip	_p9_fd_create_unix
.subsections_via_symbols
