	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_createport                ## -- Begin function tipc_createport
	.p2align	4, 0x90
_tipc_createport:                       ## @tipc_createport
	.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
	movl	%r9d, %r15d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_port_dispatcher@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_port_wakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%r13d, %ecx
	callq	_tipc_createport_raw
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	40(%rbp), %eax
	movl	32(%rbp), %ecx
	movl	24(%rbp), %edx
	movl	16(%rbp), %esi
	movq	%rbx, 8(%r13)
	movl	%r12d, 48(%rbx)
	movq	%r14, 40(%rbx)
	movl	(%r13), %edi
	movl	%edi, 32(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, 28(%rbx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, 24(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, 20(%rbx)
	movl	%esi, 16(%rbx)
	movl	%edx, 12(%rbx)
	movl	%ecx, 8(%rbx)
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_tipc_reg_add_port
	movl	(%r13), %eax
	movq	48(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_tipc_port_unlock
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port creation failed, no memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_port_dispatcher,4,2            ## @port_dispatcher
	.comm	_port_wakeup,4,2                ## @port_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_createport                ; -- Begin function tipc_createport
	.p2align	2
_tipc_createport:                       ; @tipc_createport
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x27, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _port_dispatcher@GOTPAGE
Lloh4:
	ldr	x8, [x8, _port_dispatcher@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _port_wakeup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _port_wakeup@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x3, x27
	bl	_tipc_createport_raw
	cbz	x0, LBB0_4
; %bb.2:
	mov	x27, x0
	ldr	x28, [x29, #24]
	ldp	w9, w8, [x29, #16]
	str	x22, [x0, #8]
	str	w26, [x22, #48]
	str	x25, [x22, #40]
	ldr	w10, [x0]
	stp	w24, w10, [x22, #28]
	stp	w21, w23, [x22, #20]
	stp	w19, w20, [x22, #12]
	stp	w8, w9, [x22, #4]
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	bl	_tipc_reg_add_port
	ldr	w8, [x27]
	str	w8, [x28]
	mov	x0, x27
	bl	_tipc_port_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_kfree
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port creation failed, no memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_port_dispatcher,4,2            ; @port_dispatcher
	.comm	_port_wakeup,4,2                ; @port_wakeup
.subsections_via_symbols
