	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_register_media            ## -- Begin function tipc_register_media
	.p2align	4, 0x90
_tipc_register_media:                   ## @tipc_register_media
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_media_list@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_24
## %bb.1:
	movq	%r14, %rdi
	callq	_media_name_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	cmpq	$0, 16(%rbp)
	je	LBB0_5
## %bb.6:
	movq	24(%rbp), %rdx
	movq	_TIPC_MIN_LINK_PRI@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jg	LBB0_8
## %bb.7:
	movq	_TIPC_MAX_LINK_PRI@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jl	LBB0_8
## %bb.10:
	movq	32(%rbp), %rdx
	movq	_TIPC_MIN_LINK_TOL@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jg	LBB0_12
## %bb.11:
	movq	_TIPC_MAX_LINK_TOL@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jl	LBB0_12
## %bb.13:
	movq	_media_count@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rcx
	leal	1(%rcx), %eax
	movl	%eax, (%rsi)
	movq	_MAX_MEDIA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_16
## %bb.14:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.15:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax,%r13)
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	72(%rax,%r13), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	$80, %r13
	decq	%r12
	jne	LBB0_18
LBB0_23:
	movq	40(%rbp), %r12
	movq	(%r15), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,4), %rbx
	shlq	$4, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15,%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15,%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15,%rbx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15,%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r15,%rbx)
	leaq	(%r15,%rbx), %rdi
	addq	$76, %rdi
	movq	16(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$1, 40(%r15,%rbx)
	movl	72(%r15,%rbx), %edi
	movq	%r14, %rsi
	callq	_strcpy
	movq	24(%rbp), %rax
	movq	%rax, 48(%r15,%rbx)
	movq	32(%rbp), %rax
	movq	%rax, 56(%r15,%rbx)
	movq	%r12, 64(%r15,%rbx)
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	callq	_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_24
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warn
LBB0_24:
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	movq	%rsi, %r15
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warn
	decl	(%r15)
	jmp	LBB0_24
LBB0_19:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warn
LBB0_22:
	movq	_media_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tipc_net_lock,4,2              ## @tipc_net_lock
	.comm	_media_list,8,3                 ## @media_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Media <%s> rejected, illegal name\n"

L_.str.1:                               ## @.str.1
	.asciz	"Media <%s> rejected, no broadcast address\n"

	.comm	_TIPC_MIN_LINK_PRI,8,3          ## @TIPC_MIN_LINK_PRI
	.comm	_TIPC_MAX_LINK_PRI,8,3          ## @TIPC_MAX_LINK_PRI
L_.str.2:                               ## @.str.2
	.asciz	"Media <%s> rejected, illegal priority (%u)\n"

	.comm	_TIPC_MIN_LINK_TOL,8,3          ## @TIPC_MIN_LINK_TOL
	.comm	_TIPC_MAX_LINK_TOL,8,3          ## @TIPC_MAX_LINK_TOL
L_.str.3:                               ## @.str.3
	.asciz	"Media <%s> rejected, illegal tolerance (%u)\n"

	.comm	_media_count,4,2                ## @media_count
	.comm	_MAX_MEDIA,8,3                  ## @MAX_MEDIA
L_.str.4:                               ## @.str.4
	.asciz	"Media <%s> rejected, media limit reached (%u)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Media <%s> rejected, duplicate type (%u)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Media <%s> rejected, duplicate name\n"

L_.str.7:                               ## @.str.7
	.asciz	"Media <%s> registered\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_register_media            ; -- Begin function tipc_register_media
	.p2align	2
_tipc_register_media:                   ; @tipc_register_media
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x25, x4
	mov	x24, x3
	mov	x26, x2
	mov	x20, x1
	mov	x27, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh5:
	adrp	x28, _media_list@GOTPAGE
Lloh6:
	ldr	x28, [x28, _media_list@GOTPAGEOFF]
	ldr	x8, [x28]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x0, x20
	bl	_media_name_valid
	cbz	w0, LBB0_5
; %bb.2:
	cbz	x22, LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _TIPC_MIN_LINK_PRI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TIPC_MIN_LINK_PRI@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _TIPC_MAX_LINK_PRI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TIPC_MAX_LINK_PRI@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x21, #8, le
	b.ge	LBB0_7
; %bb.4:
	str	x21, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	x10, [x29, #16]
Lloh19:
	adrp	x8, _TIPC_MIN_LINK_TOL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TIPC_MIN_LINK_TOL@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _TIPC_MAX_LINK_TOL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TIPC_MAX_LINK_TOL@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x9, x10, #8, le
	mov	x9, x10
	b.ge	LBB0_11
; %bb.8:
	str	x9, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	mov	x1, x20
	bl	_warn
LBB0_10:
Lloh27:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh28:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
Lloh29:
	adrp	x11, _media_count@GOTPAGE
Lloh30:
	ldr	x11, [x11, _media_count@GOTPAGEOFF]
	ldrsw	x10, [x11]
	add	w8, w10, #1
	str	w8, [x11]
Lloh31:
	adrp	x8, _MAX_MEDIA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MAX_MEDIA@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x8, x10
	b.le	LBB0_18
; %bb.12:
	str	w19, [sp, #20]                  ; 4-byte Folded Spill
	stp	x9, x24, [sp, #24]              ; 16-byte Folded Spill
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x23, #0
	mov	x24, x10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x9, [x8, x23]
	cmp	x9, x27
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x19, x27
	mov	x27, x26
	mov	x26, x25
	mov	x25, x10
	add	x8, x8, x23
	ldr	w1, [x8, #72]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #80
	subs	x24, x24, #1
	mov	x10, x25
	mov	x25, x26
	mov	x26, x27
	mov	x27, x19
	b.ne	LBB0_14
LBB0_17:
	ldr	x19, [x29, #24]
	ldr	x8, [x28]
	mov	w9, #80
	madd	x23, x10, x9, x8
	stp	x27, x25, [x23]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x26, x8, [x23, #16]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [x23, #32]
	add	x0, x23, #76
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	mov	w8, #1
	str	w8, [x23, #40]
	ldr	w0, [x23, #72]
	mov	x1, x20
	bl	_strcpy
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x21, x8, [x23, #48]
	str	x19, [x23, #64]
Lloh34:
	adrp	x0, l_.str.7@PAGE
Lloh35:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_dbg
	mov	w19, #0
	b	LBB0_10
LBB0_18:
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	x20, x11
	bl	_warn
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	b	LBB0_10
LBB0_19:
	str	x27, [sp]
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_21:
	mov	x1, x20
	bl	_warn
Lloh42:
	adrp	x9, _media_count@GOTPAGE
Lloh43:
	ldr	x9, [x9, _media_count@GOTPAGEOFF]
	ldr	w8, [x9]
	sub	w8, w8, #1
	str	w8, [x9]
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tipc_net_lock,4,2              ; @tipc_net_lock
	.comm	_media_list,8,3                 ; @media_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Media <%s> rejected, illegal name\n"

l_.str.1:                               ; @.str.1
	.asciz	"Media <%s> rejected, no broadcast address\n"

	.comm	_TIPC_MIN_LINK_PRI,8,3          ; @TIPC_MIN_LINK_PRI
	.comm	_TIPC_MAX_LINK_PRI,8,3          ; @TIPC_MAX_LINK_PRI
l_.str.2:                               ; @.str.2
	.asciz	"Media <%s> rejected, illegal priority (%u)\n"

	.comm	_TIPC_MIN_LINK_TOL,8,3          ; @TIPC_MIN_LINK_TOL
	.comm	_TIPC_MAX_LINK_TOL,8,3          ; @TIPC_MAX_LINK_TOL
l_.str.3:                               ; @.str.3
	.asciz	"Media <%s> rejected, illegal tolerance (%u)\n"

	.comm	_media_count,4,2                ; @media_count
	.comm	_MAX_MEDIA,8,3                  ; @MAX_MEDIA
l_.str.4:                               ; @.str.4
	.asciz	"Media <%s> rejected, media limit reached (%u)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Media <%s> rejected, duplicate type (%u)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Media <%s> rejected, duplicate name\n"

l_.str.7:                               ; @.str.7
	.asciz	"Media <%s> registered\n"

.subsections_via_symbols
