	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwmp_update_transmitter
_hwmp_update_transmitter:               ## @hwmp_update_transmitter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	(%rsi), %esi
	callq	_ieee80211_mesh_rt_find
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ieee80211_mesh_rt_add
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, %r13d
	movq	_IEEE80211_MESHRT_FLAGS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rbx), %r10d
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.5:
	cmpl	%r13d, %r10d
	jle	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %r8
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.4(%rip), %r8
LBB0_7:
	movq	_IEEE80211_MSG_HWMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%r12), %r9
	leaq	L_.str.1(%rip), %r11
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	pushq	%r13
	pushq	%r10
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r11
	callq	_IEEE80211_NOTE
	addq	$32, %rsp
	movl	12(%rbx), %edi
	movl	(%r12), %esi
	callq	_IEEE80211_ADDR_COPY
	movl	%r13d, 4(%rbx)
	movl	$1, 8(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_mesh_rt_update
	movq	_IEEE80211_MESHRT_FLAGS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_2:
	movq	_IEEE80211_MSG_HWMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%r12), %r8
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r9
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	pushq	%r13
	callq	_IEEE80211_NOTE
	addq	$16, %rsp
	incl	(%r15)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MSG_HWMP,4,2         ## @IEEE80211_MSG_HWMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to add path to transmitter %6D of %s"

L_.str.1:                               ## @.str.1
	.asciz	":"

	.comm	_IEEE80211_MESHRT_FLAGS_VALID,4,2 ## @IEEE80211_MESHRT_FLAGS_VALID
L_.str.2:                               ## @.str.2
	.asciz	"%s path to transmitter %6D of %s, metric %d:%d"

L_.str.3:                               ## @.str.3
	.asciz	"prefer"

L_.str.4:                               ## @.str.4
	.asciz	"update"

	.no_dead_strip	_hwmp_update_transmitter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwmp_update_transmitter
_hwmp_update_transmitter:               ; @hwmp_update_transmitter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	w1, [x1]
	bl	_ieee80211_mesh_rt_find
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_ieee80211_mesh_rt_add
	mov	x22, x0
	cbz	x0, LBB0_7
LBB0_2:
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x23, x0
Lloh0:
	adrp	x25, _IEEE80211_MESHRT_FLAGS_VALID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IEEE80211_MESHRT_FLAGS_VALID@GOTPAGEOFF]
	ldr	w9, [x25]
	ldp	w10, w8, [x22]
	tst	w9, w10
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, w23
	b.le	LBB0_8
; %bb.4:
Lloh2:
	adrp	x4, l_.str.3@PAGE
Lloh3:
	add	x4, x4, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x4, l_.str.4@PAGE
Lloh5:
	add	x4, x4, l_.str.4@PAGEOFF
LBB0_6:
Lloh6:
	adrp	x9, _IEEE80211_MSG_HWMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_MSG_HWMP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldrsw	x5, [x19]
	stp	x8, x23, [sp, #8]
	str	x21, [sp]
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh11:
	adrp	x6, l_.str.1@PAGE
Lloh12:
	add	x6, x6, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IEEE80211_NOTE
	ldr	w0, [x22, #12]
	ldr	w1, [x19]
	bl	_IEEE80211_ADDR_COPY
	mov	w8, #1
	stp	w23, w8, [x22, #4]
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ieee80211_mesh_rt_update
	ldr	w8, [x25]
	str	w8, [x22]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _IEEE80211_MSG_HWMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_MSG_HWMP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldrsw	x4, [x19]
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
Lloh18:
	adrp	x5, l_.str.1@PAGE
Lloh19:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x6, x21
	bl	_IEEE80211_NOTE
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MSG_HWMP,4,2         ; @IEEE80211_MSG_HWMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to add path to transmitter %6D of %s"

l_.str.1:                               ; @.str.1
	.asciz	":"

	.comm	_IEEE80211_MESHRT_FLAGS_VALID,4,2 ; @IEEE80211_MESHRT_FLAGS_VALID
l_.str.2:                               ; @.str.2
	.asciz	"%s path to transmitter %6D of %s, metric %d:%d"

l_.str.3:                               ; @.str.3
	.asciz	"prefer"

l_.str.4:                               ; @.str.4
	.asciz	"update"

	.no_dead_strip	_hwmp_update_transmitter
.subsections_via_symbols
