	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_idc_wait
_ql_idc_wait:                           ## @ql_idc_wait
	.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
	movq	%rdi, %r12
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leaq	4(%rdi), %r15
	movq	_AEN_IDC_EXT@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movl	(%rax), %r8d
	cmpl	(%r14), %r8d
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r12, %rdi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_netif_err
	movq	8(%r12), %rax
	movl	4(%rax), %eax
	shrl	$8, %eax
	andl	$15, %eax
	addq	%rax, %rbx
	jne	LBB0_1
## %bb.5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_6:
	movq	_AEN_IDC_CMPLT@GOTPCREL(%rip), %rax
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %edx
	cmpl	(%rax), %r8d
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_HZ,4,2                         ## @HZ
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IDC Timeout.\n"

	.comm	_AEN_IDC_EXT,4,2                ## @AEN_IDC_EXT
L_.str.1:                               ## @.str.1
	.asciz	"IDC Time Extension from function.\n"

	.comm	_AEN_IDC_CMPLT,4,2              ## @AEN_IDC_CMPLT
L_.str.2:                               ## @.str.2
	.asciz	"IDC Success.\n"

L_.str.3:                               ## @.str.3
	.asciz	"IDC: Invalid State 0x%.04x.\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ql_idc_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_idc_wait
_ql_idc_wait:                           ; @ql_idc_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x1, [x8]
	add	x21, x0, #4
Lloh6:
	adrp	x25, _AEN_IDC_EXT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AEN_IDC_EXT@GOTPAGEOFF]
Lloh8:
	adrp	x24, _drv@GOTPAGE
Lloh9:
	ldr	x24, [x24, _drv@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	ldr	w1, [x24]
	ldr	w2, [x19]
	mov	x0, x19
	mov	x3, x22
	bl	_netif_err
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	ubfx	x8, x8, #8, #4
	adds	x1, x23, x8
	b.ne	LBB0_1
	b	LBB0_8
LBB0_4:
	ldr	w1, [x24]
	ldr	w2, [x19]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_8
LBB0_5:
Lloh14:
	adrp	x9, _AEN_IDC_CMPLT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AEN_IDC_CMPLT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w1, [x24]
	ldr	w2, [x19]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh17:
	adrp	x3, l_.str.2@PAGE
Lloh18:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	str	x8, [sp]
Lloh19:
	adrp	x3, l_.str.3@PAGE
Lloh20:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_HZ,4,2                         ; @HZ
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IDC Timeout.\n"

	.comm	_AEN_IDC_EXT,4,2                ; @AEN_IDC_EXT
l_.str.1:                               ; @.str.1
	.asciz	"IDC Time Extension from function.\n"

	.comm	_AEN_IDC_CMPLT,4,2              ; @AEN_IDC_CMPLT
l_.str.2:                               ; @.str.2
	.asciz	"IDC Success.\n"

l_.str.3:                               ; @.str.3
	.asciz	"IDC: Invalid State 0x%.04x.\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ql_idc_wait
.subsections_via_symbols
