	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_get_one_xfer
_ti_sci_get_one_xfer:                   ## @ti_sci_get_one_xfer
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	cmpq	%r8, %rcx
	jae	LBB0_1
LBB0_4:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_1:
	cmpq	$24, %r13
	jb	LBB0_4
## %bb.2:
	movq	%r8, %r12
	cmpq	$24, %r8
	jb	LBB0_4
## %bb.3:
	cmpq	%r13, %rcx
	jb	LBB0_4
## %bb.5:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	12(%rax), %edi
	callq	_msecs_to_jiffies
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %esi
	leaq	32(%rbx), %rdi
	callq	_down_timeout
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	leaq	24(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	28(%rbx), %edi
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	callq	_find_first_zero_bit
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	%rax, %r14
	movl	28(%rbx), %esi
	movq	%rax, %rdi
	callq	_set_bit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	16(%rbx), %rax
	movq	%r14, %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	24(%rax,%rcx), %r15
	movq	%r13, 16(%rax,%rcx)
	movq	%r12, (%rax,%rcx)
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	callq	_reinit_completion
	movq	%r14, (%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r15)
	movl	(%rbx), %eax
	movl	%eax, 12(%r15)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %edi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_ti_sci_get_one_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_get_one_xfer
_ti_sci_get_one_xfer:                   ; @ti_sci_get_one_xfer
	.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
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cmp	x9, x4
	ccmp	x3, #24, #0, hs
	ccmp	x4, #24, #0, hs
	ccmp	x9, x3, #0, hs
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
	b	_ERR_PTR
LBB0_3:
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x8, #12]
	bl	_msecs_to_jiffies
	add	w1, w0, w0, lsl #2
	add	x0, x20, #32
	bl	_down_timeout
	tbnz	w0, #31, LBB0_2
; %bb.4:
	add	x24, x20, #24
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #28]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	bl	_find_first_zero_bit
	mov	x25, x0
	ldr	w1, [x20, #28]
	bl	_set_bit
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #16]
	add	x24, x8, x25, lsl #5
	ldr	x26, [x24, #24]
	str	x23, [x24, #16]
	str	x22, [x24]
	add	x0, x24, #8
	bl	_reinit_completion
	str	x25, [x26]
	str	w21, [x26, #16]
	ldr	w8, [x20]
	stp	w19, w8, [x26, #8]
	mov	x0, x24
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_ti_sci_get_one_xfer
.subsections_via_symbols
