	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_setup_interface
_iwl_setup_interface:                   ## @iwl_setup_interface
	.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	24(%rsi), %r15
	addq	$24, %rdi
	callq	_lockdep_assert_held
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movl	$1, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_set_mode
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$0, 16(%r14)
	jne	LBB0_14
## %bb.2:
	movl	$0, (%r14)
	jmp	LBB0_14
LBB0_3:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_IWL_BT_COEX_TRAFFIC_LOAD_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_7:
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.8:
	movq	8(%r14), %rcx
	movq	16(%r15), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_9
LBB0_10:
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	4(%r14), %eax
	jmp	LBB0_13
LBB0_12:
	movq	_IEEE80211_INVAL_HW_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_IWL_BT_COEX_TRAFFIC_LOAD_HIGH,4,2 ## @IWL_BT_COEX_TRAFFIC_LOAD_HIGH
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_IEEE80211_INVAL_HW_QUEUE,4,2   ## @IEEE80211_INVAL_HW_QUEUE
	.no_dead_strip	_iwl_setup_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_setup_interface
_iwl_setup_interface:                   ; @iwl_setup_interface
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #24]
	add	x0, x0, #24
	bl	_lockdep_assert_held
	ldr	x8, [x21]
	str	x8, [x20]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_set_mode
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_14
; %bb.2:
	str	wzr, [x19]
	b	LBB0_14
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _IWL_BT_COEX_TRAFFIC_LOAD_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_BT_COEX_TRAFFIC_LOAD_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_7:
Lloh6:
	adrp	x8, _IEEE80211_NUM_ACS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x9, #0
	ldr	x10, [x19, #8]
	ldr	x11, [x21, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_9
LBB0_10:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	ldr	w8, [x19, #4]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh11:
	adrp	x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_INVAL_HW_QUEUE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_13:
	str	w8, [x21, #8]
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_IWL_BT_COEX_TRAFFIC_LOAD_HIGH,4,2 ; @IWL_BT_COEX_TRAFFIC_LOAD_HIGH
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_IEEE80211_INVAL_HW_QUEUE,4,2   ; @IEEE80211_INVAL_HW_QUEUE
	.no_dead_strip	_iwl_setup_interface
.subsections_via_symbols
