	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set80211meshrtmac
_set80211meshrtmac:                     ## @set80211meshrtmac
	.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	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	%rdx, %rdi
	callq	_strlen
	leaq	2(%rax), %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movb	$58, (%rbx)
	movq	%rbx, %rdi
	incq	%rdi
	movq	%r12, %rsi
	callq	_strcpy
	movl	$16, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_link_addr
	movq	%rbx, %rdi
	callq	_free
	movq	-40(%rbp), %rbx
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r12), %rbx
LBB0_4:
	movq	_IEEE80211_IOC_MESH_RTCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-48(%rbp), %rdi
	callq	_LLADDR
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_set80211
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

	.comm	_IEEE80211_ADDR_LEN,8,3         ## @IEEE80211_ADDR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"malformed link-level address"

	.comm	_IEEE80211_IOC_MESH_RTCMD,4,2   ## @IEEE80211_IOC_MESH_RTCMD
	.no_dead_strip	_set80211meshrtmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set80211meshrtmac
_set80211meshrtmac:                     ; @set80211meshrtmac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_strlen
	add	x0, x0, #2
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	mov	w8, #58
	mov	x0, x22
	strb	w8, [x0], #1
	mov	x1, x21
	bl	_strcpy
	mov	w8, #16
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x22
	bl	_link_addr
	mov	x0, x22
	bl	_free
	ldr	x21, [sp, #8]
Lloh2:
	adrp	x22, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x21, x8
	b.eq	LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x21, [x22]
LBB0_4:
Lloh6:
	adrp	x8, _IEEE80211_IOC_MESH_RTCMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_IOC_MESH_RTCMD@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, sp
	bl	_LLADDR
	mov	x4, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_set80211
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

	.comm	_IEEE80211_ADDR_LEN,8,3         ; @IEEE80211_ADDR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"malformed link-level address"

	.comm	_IEEE80211_IOC_MESH_RTCMD,4,2   ; @IEEE80211_IOC_MESH_RTCMD
	.no_dead_strip	_set80211meshrtmac
.subsections_via_symbols
