	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc_wait_ready
_ltc_wait_ready:                        ## @ltc_wait_ready
	.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, %r14
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movq	_LTC_POLL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pmbus_get_driver_info
	movq	%rax, %rdi
	callq	_to_ltc2978_data
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_needs_polling
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	_LTC_NOT_BUSY@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	movq	_ltc3883@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_LTC_NOT_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_3:
	orl	(%rax), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	addq	%r13, %rbx
	movq	_LTC2978_MFR_COMMON@GOTPCREL(%rip), %r13
	movq	_EBADMSG@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pmbus_read_byte_data
	movl	(%r15), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	notl	%eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_4
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	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	_LTC_POLL_TIMEOUT,4,2           ## @LTC_POLL_TIMEOUT
	.comm	_LTC_NOT_BUSY,4,2               ## @LTC_NOT_BUSY
	.comm	_ltc3883,8,3                    ## @ltc3883
	.comm	_LTC_NOT_PENDING,4,2            ## @LTC_NOT_PENDING
	.comm	_LTC2978_MFR_COMMON,4,2         ## @LTC2978_MFR_COMMON
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ltc_wait_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc_wait_ready
_ltc_wait_ready:                        ; @ltc_wait_ready
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh2:
	adrp	x8, _LTC_POLL_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LTC_POLL_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x20, x0
	mov	x0, x19
	bl	_pmbus_get_driver_info
	bl	_to_ltc2978_data
	mov	x21, x0
	bl	_needs_polling
	cbz	w0, LBB0_9
; %bb.1:
Lloh5:
	adrp	x8, _LTC_NOT_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LTC_NOT_BUSY@GOTPAGEOFF]
	add	x20, x20, x23
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x21]
Lloh8:
	adrp	x10, _ltc3883@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ltc3883@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _LTC_NOT_PENDING@GOTPAGE
Lloh12:
	ldr	x11, [x11, _LTC_NOT_PENDING@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w21, w9, w8
Lloh14:
	adrp	x23, _LTC2978_MFR_COMMON@GOTPAGE
Lloh15:
	ldr	x23, [x23, _LTC2978_MFR_COMMON@GOTPAGEOFF]
Lloh16:
	adrp	x24, _EBADMSG@GOTPAGE
Lloh17:
	ldr	x24, [x24, _EBADMSG@GOTPAGEOFF]
Lloh18:
	adrp	x25, _ENXIO@GOTPAGE
Lloh19:
	ldr	x25, [x25, _ENXIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_pmbus_read_byte_data
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmn	w0, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bics	wzr, w21, w0
	b.ne	LBB0_2
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_LTC_POLL_TIMEOUT,4,2           ; @LTC_POLL_TIMEOUT
	.comm	_LTC_NOT_BUSY,4,2               ; @LTC_NOT_BUSY
	.comm	_ltc3883,8,3                    ; @ltc3883
	.comm	_LTC_NOT_PENDING,4,2            ; @LTC_NOT_PENDING
	.comm	_LTC2978_MFR_COMMON,4,2         ; @LTC2978_MFR_COMMON
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ltc_wait_ready
.subsections_via_symbols
