	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_force_rf_reset             ## -- Begin function iwl_force_rf_reset
	.p2align	4, 0x90
_iwl_force_rf_reset:                    ## @iwl_force_rf_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_iwl_is_any_associated
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	incl	16(%rbx)
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_9:
	incl	8(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_INFO
	movq	%rbx, %rdi
	callq	_iwl_internal_short_hw_scan
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_SCAN
	movq	_ENOLINK@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movq	_IWL_DELAY_NEXT_FORCE_RF_RESET@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_INFO
	incl	12(%rbx)
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"force reset rejected: not associated\n"

	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.comm	_IWL_DELAY_NEXT_FORCE_RF_RESET,8,3 ## @IWL_DELAY_NEXT_FORCE_RF_RESET
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"RF reset rejected\n"

L_.str.2:                               ## @.str.2
	.asciz	"perform radio reset.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_force_rf_reset             ; -- Begin function iwl_force_rf_reset
	.p2align	2
_iwl_force_rf_reset:                    ; @iwl_force_rf_reset
	.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
Lloh0:
	adrp	x8, _STATUS_EXIT_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	mov	x0, x19
	bl	_iwl_is_any_associated
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
Lloh5:
	adrp	x21, _jiffies@GOTPAGE
Lloh6:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	cbz	w20, LBB0_8
LBB0_6:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x21]
	str	x8, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	mov	x0, x19
	bl	_iwl_internal_short_hw_scan
	mov	w0, #0
	b	LBB0_3
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
Lloh11:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.9:
Lloh13:
	adrp	x9, _IWL_DELAY_NEXT_FORCE_RF_RESET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IWL_DELAY_NEXT_FORCE_RF_RESET@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	x1, [x21]
	bl	_time_after
	cbz	x0, LBB0_6
; %bb.10:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"force reset rejected: not associated\n"

	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.comm	_IWL_DELAY_NEXT_FORCE_RF_RESET,8,3 ; @IWL_DELAY_NEXT_FORCE_RF_RESET
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"RF reset rejected\n"

l_.str.2:                               ; @.str.2
	.asciz	"perform radio reset.\n"

.subsections_via_symbols
