	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_smart_config_sync_event
_wlcore_smart_config_sync_event:        ## @wlcore_smart_config_sync_event
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_WLCORE_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ieee80211_channel_to_frequency
	movl	%eax, %r15d
	movq	_DEBUG_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_wl1271_debug
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_WLCORE_VENDOR_EVENT_SC_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_cfg80211_vendor_event_alloc
	movq	%rax, %rbx
	movq	_WLCORE_VENDOR_ATTR_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_cfg80211_vendor_event
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_BAND_5GHZ,4,2           ## @WLCORE_BAND_5GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_DEBUG_EVENT,4,2                ## @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMART_CONFIG_SYNC_EVENT_ID, freq: %d (chan: %d band %d)"

	.comm	_WLCORE_VENDOR_EVENT_SC_SYNC,4,2 ## @WLCORE_VENDOR_EVENT_SC_SYNC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_WLCORE_VENDOR_ATTR_FREQ,4,2    ## @WLCORE_VENDOR_ATTR_FREQ
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_wlcore_smart_config_sync_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_smart_config_sync_event
_wlcore_smart_config_sync_event:        ; @wlcore_smart_config_sync_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _WLCORE_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLCORE_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	cmp	w8, w2
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ieee80211_channel_to_frequency
	mov	x22, x0
Lloh7:
	adrp	x8, _DEBUG_EVENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEBUG_EVENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_wl1271_debug
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _WLCORE_VENDOR_EVENT_SC_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLCORE_VENDOR_EVENT_SC_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w4, [x20]
	mov	x1, #0
	mov	w2, #20
	bl	_cfg80211_vendor_event_alloc
	mov	x19, x0
Lloh17:
	adrp	x8, _WLCORE_VENDOR_ATTR_FREQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLCORE_VENDOR_ATTR_FREQ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_nla_put_u32
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_kfree_skb
Lloh20:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cfg80211_vendor_event
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_BAND_5GHZ,4,2           ; @WLCORE_BAND_5GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_DEBUG_EVENT,4,2                ; @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMART_CONFIG_SYNC_EVENT_ID, freq: %d (chan: %d band %d)"

	.comm	_WLCORE_VENDOR_EVENT_SC_SYNC,4,2 ; @WLCORE_VENDOR_EVENT_SC_SYNC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_WLCORE_VENDOR_ATTR_FREQ,4,2    ; @WLCORE_VENDOR_ATTR_FREQ
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_wlcore_smart_config_sync_event
.subsections_via_symbols
