	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_join_ibss
_lbs_join_ibss:                         ## @lbs_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_wiphy_priv
	cmpq	%rbx, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_lbs_set_channel
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	16(%r15), %rsi
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	_IEEE80211_BSS_TYPE_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IEEE80211_PRIVACY_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	callq	_cfg80211_get_bss
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_lbs_ibss_join_existing
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cfg80211_put_bss
	movl	%ebx, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r13, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_ibss_start_new             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_IEEE80211_BSS_TYPE_IBSS,4,2    ## @IEEE80211_BSS_TYPE_IBSS
	.comm	_IEEE80211_PRIVACY_ANY,4,2      ## @IEEE80211_PRIVACY_ANY
	.no_dead_strip	_lbs_join_ibss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_join_ibss
_lbs_join_ibss:                         ; @lbs_join_ibss
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_wiphy_priv
	ldr	x8, [x0]
	cmp	x8, x22
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	w1, [x8]
	bl	_lbs_set_channel
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x1, [x20, #16]
	ldp	w3, w2, [x20, #4]
	ldr	w4, [x20]
Lloh0:
	adrp	x8, _IEEE80211_BSS_TYPE_IBSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_BSS_TYPE_IBSS@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _IEEE80211_PRIVACY_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_PRIVACY_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x0, x19
	bl	_cfg80211_get_bss
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_lbs_ibss_join_existing
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_cfg80211_put_bss
	mov	x0, x20
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	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
	b	_lbs_ibss_start_new
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_IEEE80211_BSS_TYPE_IBSS,4,2    ; @IEEE80211_BSS_TYPE_IBSS
	.comm	_IEEE80211_PRIVACY_ANY,4,2      ; @IEEE80211_PRIVACY_ANY
	.no_dead_strip	_lbs_join_ibss
.subsections_via_symbols
