	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_prep_connection
_ieee80211_prep_connection:             ## @ieee80211_prep_connection
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$0, 36(%r13)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 32(%r13)
	sete	%dil
LBB0_2:
	movq	40(%r13), %r15
	movq	24(%r12), %rbx
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_31:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_sta_info_get
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.30:
	movl	28(%r13), %edi
	movl	(%r12), %esi
	callq	_ether_addr_equal
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	jmp	LBB0_31
LBB0_7:
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_sta_info_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	$0, -96(%rbp)
	movq	$0, -56(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$-1, -44(%rbp)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ieee80211_prep_channel
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sta_info_free
	jmp	LBB0_31
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	leaq	-44(%rbp), %rax
	leaq	-72(%rbp), %r10
	leaq	-96(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-76(%rbp), %r9
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	pushq	%rax
	pushq	%r10
	callq	_ieee80211_get_rates
	addq	$16, %rsp
	cmpq	$0, -56(%rbp)
	jne	LBB0_14
## %bb.12:
	cmpl	$0, -44(%rbp)
	js	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_sdata_info
	movl	-44(%rbp), %edi
	callq	_BIT
	movq	%rax, -56(%rbp)
LBB0_14:
	movq	-96(%rbp), %rax
	movq	%r14, %r15
	movq	(%r14), %rcx
	movq	16(%r12), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r13)
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	movq	_IEEE80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_SDATA_OPERATING_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_17
## %bb.15:
	cmpl	$0, -76(%rbp)
	je	LBB0_17
## %bb.16:
	orl	%eax, 24(%r13)
	jmp	LBB0_18
LBB0_17:
	notl	%eax
	andl	%eax, 24(%r13)
LBB0_18:
	movl	28(%r13), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	12(%r12), %eax
	movl	%eax, 12(%r13)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%r12), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movl	(%rax), %ecx
	movl	%ecx, 8(%r13)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %ecx
	movl	%ecx, 4(%r13)
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	cmpl	$2, 4(%rax)
	jl	LBB0_25
## %bb.21:
	movl	8(%rax), %r14d
	jmp	LBB0_25
LBB0_22:
	movq	_IEEE80211_HW_TIMING_BEACON_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.24:
	movq	$0, 4(%r13)
	jmp	LBB0_25
LBB0_23:
	movl	4(%r12), %edi
	callq	_rcu_dereference
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
LBB0_25:
	movl	%r14d, (%r13)
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_BSS_CHANGED_BSSID@GOTPCREL(%rip), %rax
	movq	_BSS_CHANGED_BASIC_RATES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_BSS_CHANGED_BEACON_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ieee80211_bss_info_change_notify
	testl	%ebx, %ebx
	movq	%r15, %rbx
	je	LBB0_27
## %bb.26:
	movq	_IEEE80211_STA_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sta_info_pre_move_state
LBB0_27:
	movq	%rbx, %rdi
	callq	_sta_info_insert
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_sdata_info
	jmp	LBB0_31
LBB0_29:
	xorl	%r15d, %r15d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No basic rates, using min rate instead\n"

	.comm	_IEEE80211_BAND_2GHZ,8,3        ## @IEEE80211_BAND_2GHZ
	.comm	_IEEE80211_SDATA_OPERATING_GMODE,4,2 ## @IEEE80211_SDATA_OPERATING_GMODE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.comm	_IEEE80211_HW_TIMING_BEACON_ONLY,4,2 ## @IEEE80211_HW_TIMING_BEACON_ONLY
	.comm	_BSS_CHANGED_BSSID,4,2          ## @BSS_CHANGED_BSSID
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ## @BSS_CHANGED_BASIC_RATES
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ## @BSS_CHANGED_BEACON_INT
	.comm	_IEEE80211_STA_AUTH,4,2         ## @IEEE80211_STA_AUTH
L_.str.1:                               ## @.str.1
	.asciz	"failed to insert STA entry for the AP (error %d)\n"

	.no_dead_strip	_ieee80211_prep_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_prep_connection
_ieee80211_prep_connection:             ; @ieee80211_prep_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x0, #36]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #32]
	cmp	w8, #0
	cset	w0, eq
LBB0_3:
	ldr	x23, [x19, #40]
	ldr	x26, [x22, #24]
	bl	_WARN_ON
	cbz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	cbz	w20, LBB0_10
; %bb.8:
	bl	_rcu_read_lock
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sta_info_get
	mov	x21, x0
	bl	_rcu_read_unlock
	cbz	w21, LBB0_10
; %bb.9:
	ldr	w0, [x19, #28]
	ldr	w1, [x22]
	bl	_ether_addr_equal
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	mov	w24, #0
	b	LBB0_6
LBB0_10:
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sta_info_alloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x21, x0
	stp	xzr, xzr, [sp, #32]
Lloh5:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	mov	w8, #-1
	stp	w8, w9, [sp, #20]
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldr	x9, [x22, #16]
	ldr	x9, [x9]
	ldr	x25, [x8, x9, lsl #3]
	mov	x0, x19
	mov	x1, x22
	bl	_ieee80211_prep_channel
	cbz	w0, LBB0_14
; %bb.12:
	mov	x24, x0
	mov	x0, x23
	mov	x1, x21
	bl	_sta_info_free
	b	LBB0_6
LBB0_13:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	ldp	w2, w1, [x26, #8]
	add	x3, sp, #40
	add	x4, sp, #32
	add	x5, sp, #28
	add	x6, sp, #24
	add	x7, sp, #20
	mov	x0, x25
	bl	_ieee80211_get_rates
	ldr	x8, [sp, #32]
	cbnz	x8, LBB0_17
; %bb.15:
	ldr	w8, [sp, #20]
	tbnz	w8, #31, LBB0_17
; %bb.16:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sdata_info
	ldr	w0, [sp, #20]
	bl	_BIT
	str	x0, [sp, #32]
LBB0_17:
	ldr	x8, [sp, #40]
	ldr	x9, [x21]
	ldr	x10, [x22, #16]
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [sp, #32]
	str	x8, [x19, #16]
	ldr	x8, [x22, #16]
Lloh12:
	adrp	x9, _IEEE80211_BAND_2GHZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x8, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x10, x9
	b.ne	LBB0_20
; %bb.18:
	ldr	w9, [sp, #28]
	cbz	w9, LBB0_20
; %bb.19:
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	b	LBB0_21
LBB0_20:
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
LBB0_21:
	str	w8, [x19, #24]
	ldr	w0, [x19, #28]
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x22, #12]
	str	w8, [x19, #12]
	bl	_rcu_read_lock
	ldr	w0, [x22, #8]
	bl	_rcu_dereference
	cbz	x0, LBB0_26
; %bb.22:
	ldr	w8, [x0]
	str	w8, [x19, #8]
	ldr	w8, [x26, #4]
	str	w8, [x19, #4]
Lloh21:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldp	w2, w1, [x0, #4]
	mov	x0, x8
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_25
; %bb.23:
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.24:
	ldr	w8, [x0, #8]
	b	LBB0_29
LBB0_25:
	mov	w8, #0
	b	LBB0_29
LBB0_26:
	ldr	w8, [x23]
Lloh24:
	adrp	x9, _IEEE80211_HW_TIMING_BEACON_ONLY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_HW_TIMING_BEACON_ONLY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
	mov	w8, #0
	stp	wzr, wzr, [x19, #4]
	b	LBB0_29
LBB0_28:
	ldr	w0, [x22, #4]
	bl	_rcu_dereference
	mov	w8, #0
	ldr	w9, [x0]
	str	w9, [x19, #8]
	ldr	w9, [x26]
	str	w9, [x19, #4]
LBB0_29:
	str	w8, [x19]
	bl	_rcu_read_unlock
Lloh27:
	adrp	x8, _BSS_CHANGED_BSSID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BSS_CHANGED_BSSID@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _BSS_CHANGED_BASIC_RATES@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BSS_CHANGED_BASIC_RATES@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _BSS_CHANGED_BEACON_INT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _BSS_CHANGED_BEACON_INT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_ieee80211_bss_info_change_notify
	cbz	w20, LBB0_31
; %bb.30:
Lloh36:
	adrp	x8, _IEEE80211_STA_AUTH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IEEE80211_STA_AUTH@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sta_info_pre_move_state
LBB0_31:
	mov	x0, x21
	bl	_sta_info_insert
	mov	x24, x0
	cbz	w0, LBB0_6
; %bb.32:
	str	x24, [sp]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sdata_info
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No basic rates, using min rate instead\n"

	.comm	_IEEE80211_BAND_2GHZ,8,3        ; @IEEE80211_BAND_2GHZ
	.comm	_IEEE80211_SDATA_OPERATING_GMODE,4,2 ; @IEEE80211_SDATA_OPERATING_GMODE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.comm	_IEEE80211_HW_TIMING_BEACON_ONLY,4,2 ; @IEEE80211_HW_TIMING_BEACON_ONLY
	.comm	_BSS_CHANGED_BSSID,4,2          ; @BSS_CHANGED_BSSID
	.comm	_BSS_CHANGED_BASIC_RATES,4,2    ; @BSS_CHANGED_BASIC_RATES
	.comm	_BSS_CHANGED_BEACON_INT,4,2     ; @BSS_CHANGED_BEACON_INT
	.comm	_IEEE80211_STA_AUTH,4,2         ; @IEEE80211_STA_AUTH
l_.str.1:                               ; @.str.1
	.asciz	"failed to insert STA entry for the AP (error %d)\n"

	.no_dead_strip	_ieee80211_prep_connection
.subsections_via_symbols
