	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scmi_xfer_get_init             ## -- Begin function scmi_xfer_get_init
	.p2align	4, 0x90
_scmi_xfer_get_init:                    ## @scmi_xfer_get_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_handle_to_scmi_info
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	%r12, %rax
	jb	LBB0_2
## %bb.1:
	cmpq	%r13, %rax
	jb	LBB0_2
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r14), %rsi
	movq	%rbx, %rdi
	callq	_scmi_xfer_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movq	%r13, 32(%r15)
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %r12
LBB0_7:
	movq	%r12, 24(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movl	$0, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get free message slot(%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scmi_xfer_get_init             ; -- Begin function scmi_xfer_get_init
	.p2align	2
_scmi_xfer_get_init:                    ; @scmi_xfer_get_init
	.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, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	bl	_handle_to_scmi_info
	ldr	x8, [x0]
	ldr	x8, [x8]
	cmp	x8, x22
	ccmp	x8, x23, #0, hs
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_2:
	mov	x24, x0
	ldr	x26, [x0, #8]
	add	x1, x0, #16
	mov	x0, x25
	bl	_scmi_xfer_get
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x25
	bl	_PTR_ERR
	mov	x23, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	mov	x2, x23
	bl	_dev_err
	b	LBB0_7
LBB0_4:
	str	x23, [x25, #32]
	cbnz	x22, LBB0_6
; %bb.5:
	ldr	x8, [x24]
	ldr	x22, [x8]
LBB0_6:
	mov	w23, #0
	stp	x21, x22, [x25, #16]
	str	x20, [x25, #8]
	str	wzr, [x25]
	str	x25, [x19]
LBB0_7:
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get free message slot(%d)\n"

.subsections_via_symbols
