	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rndis_join_ibss
_rndis_join_ibss:                       ## @rndis_join_ibss
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_wiphy_priv
	movq	(%rax), %r15
	movq	16(%r14), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	callq	_ieee80211_frequency_to_channel
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	movl	12(%r14), %r9d
	testl	%r9d, %r9d
	movq	_RNDIS_WLAN_ALG_WEP@GOTPCREL(%rip), %rcx
	cmoveq	_RNDIS_WLAN_ALG_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_NL80211_AUTHTYPE_SHARED_KEY@GOTPCREL(%rip), %rcx
	cmoveq	_NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	(%r15), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%r15, %rdi
	callq	_is_associated
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_disassociate
LBB0_5:
	movq	_NDIS_80211_INFRA_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_set_infra_mode
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	_RNDIS_WLAN_KEY_MGMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_set_auth_mode
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_set_priv_filter
	movq	_RNDIS_WLAN_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_set_encr_mode
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	testq	%r12, %r12
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_channel
	testl	%eax, %eax
	js	LBB0_14
LBB0_15:
	movl	8(%r14), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.16:
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movl	8(%r14), %edi
	callq	_is_broadcast_ether_addr
	testl	%eax, %eax
	je	LBB0_18
LBB0_20:
	movq	%r15, %rdi
	callq	_clear_bssid
LBB0_21:
	movl	(%r14), %eax
	movq	_NDIS_802_11_LENGTH_SSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, -52(%rbp)
	movl	-56(%rbp), %edi
	movl	4(%r14), %esi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_usbnet_purge_paused_rxq
	movq	%r15, %rdi
	callq	_usbnet_resume_rx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_set_essid
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_23
## %bb.22:
	movl	(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_23
LBB0_6:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_14:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_7:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_disassociate
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	8(%r14), %esi
	movq	%r15, %rdi
	callq	_set_bssid
	testl	%eax, %eax
	jns	LBB0_21
## %bb.19:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_AUTHTYPE_SHARED_KEY,4,2 ## @NL80211_AUTHTYPE_SHARED_KEY
	.comm	_RNDIS_WLAN_ALG_WEP,4,2         ## @RNDIS_WLAN_ALG_WEP
	.comm	_NL80211_AUTHTYPE_OPEN_SYSTEM,4,2 ## @NL80211_AUTHTYPE_OPEN_SYSTEM
	.comm	_RNDIS_WLAN_ALG_NONE,4,2        ## @RNDIS_WLAN_ALG_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cfg80211.join_ibss('%.32s':[%pM]:%d:%d)\n"

	.comm	_NDIS_80211_INFRA_ADHOC,4,2     ## @NDIS_80211_INFRA_ADHOC
L_.str.1:                               ## @.str.1
	.asciz	"join_ibss: set_infra_mode failed, %d\n"

	.comm	_RNDIS_WLAN_KEY_MGMT_NONE,4,2   ## @RNDIS_WLAN_KEY_MGMT_NONE
L_.str.2:                               ## @.str.2
	.asciz	"join_ibss: set_auth_mode failed, %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"join_ibss: set_encr_mode failed, %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"join_ibss: set_channel failed, %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"join_ibss: set_bssid failed, %d\n"

	.comm	_NDIS_802_11_LENGTH_SSID,4,2    ## @NDIS_802_11_LENGTH_SSID
L_.str.6:                               ## @.str.6
	.asciz	"join_ibss: set_essid failed, %d\n"

	.no_dead_strip	_rndis_join_ibss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rndis_join_ibss
_rndis_join_ibss:                       ; @rndis_join_ibss
	.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	x20, x2
	bl	_wiphy_priv
	ldr	x19, [x0]
	ldr	x25, [x20, #16]
	cbz	x25, LBB0_2
; %bb.1:
	ldr	w0, [x25]
	bl	_ieee80211_frequency_to_channel
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	w22, #-1
LBB0_3:
	ldr	w8, [x20, #12]
Lloh0:
	adrp	x26, _RNDIS_WLAN_ALG_NONE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RNDIS_WLAN_ALG_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RNDIS_WLAN_ALG_WEP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RNDIS_WLAN_ALG_WEP@GOTPAGEOFF]
	cmp	w8, #0
	csel	x9, x26, x9, eq
Lloh4:
	adrp	x10, _NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPAGEOFF]
Lloh6:
	adrp	x11, _NL80211_AUTHTYPE_SHARED_KEY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NL80211_AUTHTYPE_SHARED_KEY@GOTPAGEOFF]
	ldr	w23, [x9]
	csel	x9, x10, x11, eq
	ldr	w24, [x9]
	ldr	w0, [x19]
	ldp	w2, w9, [x20, #4]
	stp	x22, x8, [sp, #8]
	str	x9, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x19
	bl	_is_associated
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_disassociate
LBB0_5:
Lloh10:
	adrp	x8, _NDIS_80211_INFRA_ADHOC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NDIS_80211_INFRA_ADHOC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_infra_mode
	tbnz	w0, #31, LBB0_16
; %bb.6:
Lloh13:
	adrp	x8, _RNDIS_WLAN_KEY_MGMT_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RNDIS_WLAN_KEY_MGMT_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x24
	bl	_set_auth_mode
	tbnz	w0, #31, LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_set_priv_filter
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x23
	bl	_set_encr_mode
	tbnz	w0, #31, LBB0_18
; %bb.8:
	cbz	x25, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x22
	bl	_set_channel
	tbnz	w0, #31, LBB0_19
LBB0_10:
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_13
; %bb.11:
	bl	_is_zero_ether_addr
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x20, #8]
	bl	_is_broadcast_ether_addr
	cbz	w0, LBB0_22
LBB0_13:
	mov	x0, x19
	bl	_clear_bssid
LBB0_14:
	ldr	w8, [x20]
Lloh16:
	adrp	x9, _NDIS_802_11_LENGTH_SSID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NDIS_802_11_LENGTH_SSID@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w21, w8, w9, lt
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [sp, #28]
	ldr	w0, [sp, #24]
	ldr	w1, [x20, #4]
	mov	x2, x21
	bl	_memcpy
	mov	x0, x19
	bl	_usbnet_purge_paused_rxq
	mov	x0, x19
	bl	_usbnet_resume_rx
	add	x1, sp, #24
	mov	x0, x19
	bl	_set_essid
	mov	x21, x0
	tbz	w0, #31, LBB0_21
; %bb.15:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_netdev_dbg
	b	LBB0_21
LBB0_16:
	mov	x21, x0
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_17:
	mov	x21, x0
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_18:
	mov	x21, x0
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_19:
	mov	x21, x0
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_20:
	mov	x2, x21
	bl	_netdev_dbg
	mov	x0, x19
	mov	w1, #1
	bl	_disassociate
LBB0_21:
	mov	x0, x21
	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
LBB0_22:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_set_bssid
	tbz	w0, #31, LBB0_14
; %bb.23:
	mov	x21, x0
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_20
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_AUTHTYPE_SHARED_KEY,4,2 ; @NL80211_AUTHTYPE_SHARED_KEY
	.comm	_RNDIS_WLAN_ALG_WEP,4,2         ; @RNDIS_WLAN_ALG_WEP
	.comm	_NL80211_AUTHTYPE_OPEN_SYSTEM,4,2 ; @NL80211_AUTHTYPE_OPEN_SYSTEM
	.comm	_RNDIS_WLAN_ALG_NONE,4,2        ; @RNDIS_WLAN_ALG_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cfg80211.join_ibss('%.32s':[%pM]:%d:%d)\n"

	.comm	_NDIS_80211_INFRA_ADHOC,4,2     ; @NDIS_80211_INFRA_ADHOC
l_.str.1:                               ; @.str.1
	.asciz	"join_ibss: set_infra_mode failed, %d\n"

	.comm	_RNDIS_WLAN_KEY_MGMT_NONE,4,2   ; @RNDIS_WLAN_KEY_MGMT_NONE
l_.str.2:                               ; @.str.2
	.asciz	"join_ibss: set_auth_mode failed, %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"join_ibss: set_encr_mode failed, %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"join_ibss: set_channel failed, %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"join_ibss: set_bssid failed, %d\n"

	.comm	_NDIS_802_11_LENGTH_SSID,4,2    ; @NDIS_802_11_LENGTH_SSID
l_.str.6:                               ; @.str.6
	.asciz	"join_ibss: set_essid failed, %d\n"

	.no_dead_strip	_rndis_join_ibss
.subsections_via_symbols
