	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_set_and_wait_config_valid
_malidp_set_and_wait_config_valid:      ## @malidp_set_and_wait_config_valid
	.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	(%rdi), %r14
	movq	8(%r14), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*8(%rax)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MALIDP_CONFIG_VALID_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_atomic_set
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movl	4(%r14), %r15d
	movq	%r14, %rdi
	callq	_atomic_read
	movq	_MALIDP_CONFIG_VALID_DONE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	movq	_MALIDP_CONF_VALID_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movl	%eax, %ecx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testl	%ecx, %ecx
	cmovgl	%edx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP_CONFIG_VALID_DONE,8,3   ## @MALIDP_CONFIG_VALID_DONE
	.comm	_MALIDP_CONF_VALID_TIMEOUT,4,2  ## @MALIDP_CONF_VALID_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_malidp_set_and_wait_config_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_set_and_wait_config_valid
_malidp_set_and_wait_config_valid:      ; @malidp_set_and_wait_config_valid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x20, [x19, #8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	w1, #1
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MALIDP_CONFIG_VALID_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALIDP_CONFIG_VALID_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_atomic_set
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_atomic_read
Lloh3:
	adrp	x8, _MALIDP_CONFIG_VALID_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MALIDP_CONFIG_VALID_DONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w19, eq
Lloh6:
	adrp	x8, _MALIDP_CONF_VALID_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MALIDP_CONF_VALID_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_wait_event_interruptible_timeout
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, gt
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP_CONFIG_VALID_DONE,8,3   ; @MALIDP_CONFIG_VALID_DONE
	.comm	_MALIDP_CONF_VALID_TIMEOUT,4,2  ; @MALIDP_CONF_VALID_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_malidp_set_and_wait_config_valid
.subsections_via_symbols
