	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_join_ibss           ## -- Begin function __cfg80211_join_ibss
	.p2align	4, 0x90
___cfg80211_join_ibss:                  ## @__cfg80211_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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r14
	movq	%r14, %rdi
	callq	_ASSERT_WDEV_LOCK
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_EALREADY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	cmpl	$0, 32(%r15)
	je	LBB0_3
LBB0_11:
	movq	16(%r14), %rdi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	16(%r14), %rdi
	callq	_kfree
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	%rbx, %r12
	movq	16(%rbx), %rax
	movq	%rax, 32(%r14)
	movq	_CFG80211_SME_CONNECTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
	movq	24(%rbx), %rdx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:
	movq	_CHAN_MODE_EXCLUSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_CHAN_MODE_SHARED@GOTPCREL(%rip), %rax
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cfg80211_can_use_chan
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	$0, 16(%r14)
	jmp	LBB0_21
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rbx, %rcx
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	_IEEE80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.5:
	movq	_IEEE80211_RATE_MANDATORY_A@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_18:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_rdev_join_ibss
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	$0, 16(%r14)
	movq	_CFG80211_SME_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
	jmp	LBB0_21
LBB0_4:
	movq	_IEEE80211_RATE_MANDATORY_B@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movl	(%rcx), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	testl	%r15d, (%rcx,%r12,4)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edi
	callq	_BIT
	orl	%eax, 32(%rbx)
	movl	(%r13), %eax
	jmp	LBB0_10
LBB0_20:
	movl	8(%r14), %edi
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	callq	_memcpy
	movq	(%r12), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_IEEE80211_BAND_5GHZ,8,3        ## @IEEE80211_BAND_5GHZ
	.comm	_IEEE80211_RATE_MANDATORY_A,4,2 ## @IEEE80211_RATE_MANDATORY_A
	.comm	_IEEE80211_RATE_MANDATORY_B,4,2 ## @IEEE80211_RATE_MANDATORY_B
	.comm	_CFG80211_SME_CONNECTING,4,2    ## @CFG80211_SME_CONNECTING
	.comm	_CHAN_MODE_SHARED,4,2           ## @CHAN_MODE_SHARED
	.comm	_CHAN_MODE_EXCLUSIVE,4,2        ## @CHAN_MODE_EXCLUSIVE
	.comm	_CFG80211_SME_IDLE,4,2          ## @CFG80211_SME_IDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_join_ibss           ; -- Begin function __cfg80211_join_ibss
	.p2align	2
___cfg80211_join_ibss:                  ; @__cfg80211_join_ibss
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_ASSERT_WDEV_LOCK
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EALREADY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_2:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_7
LBB0_3:
	ldr	x0, [x19, #16]
	bl	_WARN_ON
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_5:
	str	x23, [x19, #16]
	ldp	x8, x2, [x20, #16]
	str	x8, [x19, #32]
Lloh3:
	adrp	x9, _CFG80211_SME_CONNECTING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CFG80211_SME_CONNECTING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _CHAN_MODE_SHARED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CHAN_MODE_SHARED@GOTPAGEOFF]
	str	w9, [x19, #12]
Lloh8:
	adrp	x9, _CHAN_MODE_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHAN_MODE_EXCLUSIVE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x19
	bl	_cfg80211_can_use_chan
	cbz	w0, LBB0_12
; %bb.6:
	str	xzr, [x19, #16]
	b	LBB0_15
LBB0_7:
	ldr	x8, [x22]
	ldr	x9, [x20, #24]
	ldr	x9, [x9]
	ldr	x25, [x8, x9, lsl #3]
Lloh10:
	adrp	x8, _IEEE80211_BAND_5GHZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_BAND_5GHZ@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x10, _IEEE80211_RATE_MANDATORY_A@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEEE80211_RATE_MANDATORY_A@GOTPAGEOFF]
Lloh15:
	adrp	x11, _IEEE80211_RATE_MANDATORY_B@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IEEE80211_RATE_MANDATORY_B@GOTPAGEOFF]
	cmp	x9, x8
	csel	x9, x10, x11, eq
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.8:
	mov	x24, #0
	ldr	w26, [x9]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, #8]
	ldr	w9, [x9, x24, lsl #2]
	tst	w9, w26
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_BIT
	ldr	w8, [x20, #32]
	orr	w8, w8, w0
	str	w8, [x20, #32]
	ldr	w8, [x25]
	b	LBB0_9
LBB0_12:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_rdev_join_ibss
	cbz	w0, LBB0_14
; %bb.13:
	str	xzr, [x19, #16]
Lloh17:
	adrp	x8, _CFG80211_SME_IDLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CFG80211_SME_IDLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_IEEE80211_BAND_5GHZ,8,3        ; @IEEE80211_BAND_5GHZ
	.comm	_IEEE80211_RATE_MANDATORY_A,4,2 ; @IEEE80211_RATE_MANDATORY_A
	.comm	_IEEE80211_RATE_MANDATORY_B,4,2 ; @IEEE80211_RATE_MANDATORY_B
	.comm	_CFG80211_SME_CONNECTING,4,2    ; @CFG80211_SME_CONNECTING
	.comm	_CHAN_MODE_SHARED,4,2           ; @CHAN_MODE_SHARED
	.comm	_CHAN_MODE_EXCLUSIVE,4,2        ; @CHAN_MODE_EXCLUSIVE
	.comm	_CFG80211_SME_IDLE,4,2          ; @CFG80211_SME_IDLE
.subsections_via_symbols
