	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bearer_name_validate
_bearer_name_validate:                  ## @bearer_name_validate
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TIPC_MAX_BEARER_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movslq	%eax, %rbx
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movb	$0, -1(%rbx,%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	movslq	(%r12), %rax
	xorl	%r15d, %r15d
	cmpb	$0, -1(%rax,%r13)
	je	LBB0_1
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	movl	%r12d, %ebx
	subl	%r13d, %ebx
	movq	%r12, %rdi
	callq	_strlen
	cmpl	$2, %ebx
	jl	LBB0_10
## %bb.3:
	movq	_TIPC_MAX_MEDIA_NAME@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jl	LBB0_10
## %bb.4:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movq	_TIPC_MAX_IF_NAME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_10
## %bb.6:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_tipc_alphabet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_strspn
	decl	%ebx
	cmpl	%ebx, %eax
	jne	LBB0_10
## %bb.7:
	movq	_tipc_alphabet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_strspn
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.8:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movl	4(%r14), %edi
	movq	%r13, %rsi
	callq	_strcpy
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_strcpy
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TIPC_MAX_BEARER_NAME,4,2       ## @TIPC_MAX_BEARER_NAME
	.comm	_TIPC_MAX_MEDIA_NAME,4,2        ## @TIPC_MAX_MEDIA_NAME
	.comm	_TIPC_MAX_IF_NAME,4,2           ## @TIPC_MAX_IF_NAME
	.comm	_tipc_alphabet,4,2              ## @tipc_alphabet
	.no_dead_strip	_bearer_name_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bearer_name_validate
_bearer_name_validate:                  ; @bearer_name_validate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _TIPC_MAX_BEARER_NAME@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TIPC_MAX_BEARER_NAME@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	add	x8, x20, w2, sxtw
	sturb	wzr, [x8, #-1]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strncpy
	mov	w0, #0
	ldrsw	x8, [x21]
	add	x8, x8, x20
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.2:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_1
; %bb.4:
	mov	x21, x0
	strb	wzr, [x21], #1
	sub	w23, w21, w20
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	mov	w0, #0
	cmp	w23, #2
	b.lt	LBB0_1
; %bb.5:
Lloh10:
	adrp	x8, _TIPC_MAX_MEDIA_NAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIPC_MAX_MEDIA_NAME@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _TIPC_MAX_IF_NAME@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TIPC_MAX_IF_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w23
	ccmp	w22, #1, #8, ge
	ccmp	w22, w9, #0, ge
	b.ge	LBB0_11
; %bb.6:
Lloh16:
	adrp	x24, _tipc_alphabet@GOTPAGE
Lloh17:
	ldr	x24, [x24, _tipc_alphabet@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_strspn
	sub	w8, w23, #1
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.7:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_strspn
	cmp	w0, w22
	b.ne	LBB0_11
; %bb.8:
	cbz	x19, LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_strcpy
	ldr	w0, [x19]
	mov	x1, x21
	bl	_strcpy
LBB0_10:
	mov	w0, #1
	b	LBB0_1
LBB0_11:
	mov	w0, #0
	b	LBB0_1
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TIPC_MAX_BEARER_NAME,4,2       ; @TIPC_MAX_BEARER_NAME
	.comm	_TIPC_MAX_MEDIA_NAME,4,2        ; @TIPC_MAX_MEDIA_NAME
	.comm	_TIPC_MAX_IF_NAME,4,2           ; @TIPC_MAX_IF_NAME
	.comm	_tipc_alphabet,4,2              ; @tipc_alphabet
	.no_dead_strip	_bearer_name_validate
.subsections_via_symbols
