	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_ibss_start_new
_lbs_ibss_start_new:                    ## @lbs_ibss_start_new
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_RADIO_PREAMBLE_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_lbs_set_radio
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movl	$80, %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movl	-36(%rbp), %edi
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	callq	_memcpy
	movq	_CMD_BSS_TYPE_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movq	_WLAN_EID_IBSS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$2, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_WLAN_EID_DS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$1, -76(%rbp)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	(%rbx), %edi
	callq	_MRVL_FW_MAJOR_REV
	cmpl	$8, %eax
	jg	LBB0_3
## %bb.2:
	movq	_CMD_SCAN_PROBE_DELAY_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
LBB0_3:
	movq	_WLAN_CAPABILITY_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movl	-104(%rbp), %edi
	callq	_lbs_add_rates
	movq	_CMD_802_11_AD_HOC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lbs_cmd_with_response
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-104(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %ecx
	callq	_lbs_join_post
	xorl	%eax, %eax
LBB0_5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIO_PREAMBLE_SHORT,4,2       ## @RADIO_PREAMBLE_SHORT
	.comm	_CMD_BSS_TYPE_IBSS,4,2          ## @CMD_BSS_TYPE_IBSS
	.comm	_WLAN_EID_IBSS_PARAMS,4,2       ## @WLAN_EID_IBSS_PARAMS
	.comm	_WLAN_EID_DS_PARAMS,4,2         ## @WLAN_EID_DS_PARAMS
	.comm	_CMD_SCAN_PROBE_DELAY_TIME,4,2  ## @CMD_SCAN_PROBE_DELAY_TIME
	.comm	_WLAN_CAPABILITY_IBSS,4,2       ## @WLAN_CAPABILITY_IBSS
	.comm	_CMD_802_11_AD_HOC_START,4,2    ## @CMD_802_11_AD_HOC_START
	.no_dead_strip	_lbs_ibss_start_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_ibss_start_new
_lbs_ibss_start_new:                    ; @lbs_ibss_start_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RADIO_PREAMBLE_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADIO_PREAMBLE_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w21, #1
	mov	w2, #1
	bl	_lbs_set_radio
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	w0, #80
	bl	_cpu_to_le16
	str	x0, [sp, #72]
	ldr	w0, [sp, #68]
	ldp	w2, w1, [x19, #16]
	bl	_memcpy
Lloh3:
	adrp	x8, _CMD_BSS_TYPE_IBSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_BSS_TYPE_IBSS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [sp, #56]
Lloh6:
	adrp	x8, _WLAN_EID_IBSS_PARAMS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_EID_IBSS_PARAMS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #2
	stp	w9, w8, [sp, #48]
	str	xzr, [sp, #40]
Lloh9:
	adrp	x8, _WLAN_EID_DS_PARAMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_DS_PARAMS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #28]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [x20]
	bl	_MRVL_FW_MAJOR_REV
	cmp	w0, #8
	b.gt	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _CMD_SCAN_PROBE_DELAY_TIME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_SCAN_PROBE_DELAY_TIME@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
LBB0_3:
Lloh15:
	adrp	x8, _WLAN_CAPABILITY_IBSS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WLAN_CAPABILITY_IBSS@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	ldr	w0, [sp]
	bl	_lbs_add_rates
Lloh18:
	adrp	x8, _CMD_802_11_AD_HOC_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMD_802_11_AD_HOC_START@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_lbs_cmd_with_response
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w2, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_lbs_join_post
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIO_PREAMBLE_SHORT,4,2       ; @RADIO_PREAMBLE_SHORT
	.comm	_CMD_BSS_TYPE_IBSS,4,2          ; @CMD_BSS_TYPE_IBSS
	.comm	_WLAN_EID_IBSS_PARAMS,4,2       ; @WLAN_EID_IBSS_PARAMS
	.comm	_WLAN_EID_DS_PARAMS,4,2         ; @WLAN_EID_DS_PARAMS
	.comm	_CMD_SCAN_PROBE_DELAY_TIME,4,2  ; @CMD_SCAN_PROBE_DELAY_TIME
	.comm	_WLAN_CAPABILITY_IBSS,4,2       ; @WLAN_CAPABILITY_IBSS
	.comm	_CMD_802_11_AD_HOC_START,4,2    ; @CMD_802_11_AD_HOC_START
	.no_dead_strip	_lbs_ibss_start_new
.subsections_via_symbols
