	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_use_ebs
_iwl_mvm_scan_use_ebs:                  ## @iwl_mvm_scan_use_ebs
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_iwl_mvm_is_cdb_supported
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_mvm_low_latency_band
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_iwl_mvm_low_latency
LBB0_3:
	movl	%eax, %ecx
	movq	_IWL_UCODE_TLV_FLAGS_EBS_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%r15)
	je	LBB0_10
## %bb.4:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.5:
	movq	_IWL_MVM_ENABLE_EBS@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_10
## %bb.6:
	movq	(%r14), %rdx
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.7:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_frag_ebs_supported
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_10
LBB0_8:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_IWL_UCODE_TLV_FLAGS_EBS_SUPPORT,4,2 ## @IWL_UCODE_TLV_FLAGS_EBS_SUPPORT
	.comm	_IWL_MVM_ENABLE_EBS,8,3         ## @IWL_MVM_ENABLE_EBS
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ## @NL80211_IFTYPE_P2P_DEVICE
	.no_dead_strip	_iwl_mvm_scan_use_ebs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_scan_use_ebs
_iwl_mvm_scan_use_ebs:                  ; @iwl_mvm_scan_use_ebs
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_iwl_mvm_is_cdb_supported
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_mvm_low_latency_band
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_iwl_mvm_low_latency
LBB0_3:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _IWL_UCODE_TLV_FLAGS_EBS_SUPPORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_UCODE_TLV_FLAGS_EBS_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	mov	w8, #0
	ldr	x9, [x19]
	cbz	x9, LBB0_8
; %bb.5:
Lloh6:
	adrp	x9, _IWL_MVM_ENABLE_EBS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IWL_MVM_ENABLE_EBS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cbz	x9, LBB0_8
; %bb.6:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_7:
	mov	w8, #0
LBB0_8:
	mov	x0, x8
	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:
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_iwl_mvm_is_frag_ebs_supported
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_8
LBB0_11:
	mov	w8, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_IWL_UCODE_TLV_FLAGS_EBS_SUPPORT,4,2 ; @IWL_UCODE_TLV_FLAGS_EBS_SUPPORT
	.comm	_IWL_MVM_ENABLE_EBS,8,3         ; @IWL_MVM_ENABLE_EBS
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ; @NL80211_IFTYPE_P2P_DEVICE
	.no_dead_strip	_iwl_mvm_scan_use_ebs
.subsections_via_symbols
