	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sync_curchan         ## -- Begin function ieee80211_sync_curchan
	.p2align	4, 0x90
_ieee80211_sync_curchan:                ## @ieee80211_sync_curchan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_gethtadjustflags
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ieee80211_ht_adjust_channel
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_getvhtadjustflags
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ieee80211_vht_adjust_channel
	cmpq	8(%rbx), %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_ieee80211_chan2mode
	movl	%eax, 20(%rbx)
	movq	8(%rbx), %rdi
	callq	_ieee80211_get_ratetable
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_IEEE80211_UNLOCK
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	%rbx, %rdi
	callq	_ieee80211_radiotap_chan_change
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_IEEE80211_LOCK                 ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sync_curchan         ; -- Begin function ieee80211_sync_curchan
	.p2align	2
_ieee80211_sync_curchan:                ; @ieee80211_sync_curchan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_gethtadjustflags
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_ht_adjust_channel
	mov	x20, x0
	mov	x0, x19
	bl	_getvhtadjustflags
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ieee80211_vht_adjust_channel
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	str	x0, [x19, #8]
	bl	_ieee80211_chan2mode
	str	w0, [x19, #20]
	ldr	x0, [x19, #8]
	bl	_ieee80211_get_ratetable
	str	w0, [x19, #16]
	mov	x0, x19
	bl	_IEEE80211_UNLOCK
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_ieee80211_radiotap_chan_change
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IEEE80211_LOCK
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
