	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at76_wait_completion
_at76_wait_completion:                  ## @at76_wait_completion
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_CMD_COMPLETION_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_schedule_timeout_interruptible
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movl	%r14d, %esi
	callq	_at76_get_cmd_status
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DBG_WAIT_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_at76_get_cmd_status_string
	movl	%r12d, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_at76_dbg
	movq	_CMD_STATUS_IN_PROGRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CMD_STATUS_IDLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movq	(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_wiphy_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_wiphy_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CMD_COMPLETION_TIMEOUT,8,3     ## @CMD_COMPLETION_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"at76_get_cmd_status failed: %d\n"

	.comm	_DBG_WAIT_COMPLETE,4,2          ## @DBG_WAIT_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"%s: Waiting on cmd %d, status = %d (%s)"

	.comm	_CMD_STATUS_IN_PROGRESS,4,2     ## @CMD_STATUS_IN_PROGRESS
	.comm	_CMD_STATUS_IDLE,4,2            ## @CMD_STATUS_IDLE
	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"completion timeout for command %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_at76_wait_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at76_wait_completion
_at76_wait_completion:                  ; @at76_wait_completion
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CMD_COMPLETION_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_COMPLETION_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh8:
	adrp	x28, _CMD_STATUS_IN_PROGRESS@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CMD_STATUS_IN_PROGRESS@GOTPAGEOFF]
	add	x22, x9, x8
Lloh10:
	adrp	x26, _CMD_STATUS_IDLE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _CMD_STATUS_IDLE@GOTPAGEOFF]
	mov	w27, #26215
	movk	w27, #26214, lsl #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_at76_get_cmd_status
	mov	x23, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh12:
	adrp	x8, _DBG_WAIT_COMPLETE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_WAIT_COMPLETE@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x25, x0
	mov	x0, x23
	bl	_at76_get_cmd_status_string
	mov	x5, x0
	mov	x0, x24
	mov	x1, x21
	mov	x2, x25
	mov	x3, x19
	mov	x4, x23
	bl	_at76_dbg
	ldr	w8, [x28]
	ldr	w9, [x26]
	cmp	w23, w8
	ccmp	w23, w9, #4, ne
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh15:
	adrp	x8, _HZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_schedule_timeout_interruptible
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_time_after
	cbz	x0, LBB0_1
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_wiphy_err
Lloh23:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_wiphy_err
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CMD_COMPLETION_TIMEOUT,8,3     ; @CMD_COMPLETION_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"at76_get_cmd_status failed: %d\n"

	.comm	_DBG_WAIT_COMPLETE,4,2          ; @DBG_WAIT_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"%s: Waiting on cmd %d, status = %d (%s)"

	.comm	_CMD_STATUS_IN_PROGRESS,4,2     ; @CMD_STATUS_IN_PROGRESS
	.comm	_CMD_STATUS_IDLE,4,2            ; @CMD_STATUS_IDLE
	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"completion timeout for command %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_at76_wait_completion
.subsections_via_symbols
