	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3c_master_getmrl_locked
_i3c_master_getmrl_locked:              ## @i3c_master_getmrl_locked
	.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	%rsi, %r12
	movq	%rdi, %r15
	movl	12(%rsi), %esi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_i3c_ccc_cmd_dest_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_I3C_BCR_IBI_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-48(%rbp), %r13d
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.3:
	decl	%r13d
	movl	%r13d, -48(%rbp)
LBB0_4:
	movq	_I3C_CCC_GETMRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rbx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %r8d
	callq	_i3c_ccc_cmd_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_send_ccc_cmd_locked
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	cmpl	%r13d, -48(%rbp)
	jne	LBB0_6
## %bb.7:
	movl	4(%r14), %edi
	callq	_be16_to_cpu
	movl	%eax, 8(%r12)
	movq	_I3C_BCR_IBI_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	leaq	-48(%rbp), %rdi
	callq	_i3c_ccc_cmd_dest_cleanup
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I3C_BCR_IBI_PAYLOAD,4,2        ## @I3C_BCR_IBI_PAYLOAD
	.comm	_I3C_CCC_GETMRL,4,2             ## @I3C_CCC_GETMRL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_i3c_master_getmrl_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i3c_master_getmrl_locked
_i3c_master_getmrl_locked:              ; @i3c_master_getmrl_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #12]
	add	x0, sp, #8
	mov	w2, #8
	bl	_i3c_ccc_cmd_dest_init
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _I3C_BCR_IBI_PAYLOAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I3C_BCR_IBI_PAYLOAD@GOTPAGEOFF]
	ldr	w9, [x22]
	ldr	w23, [sp, #8]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	sub	w23, w23, #1
	str	w23, [sp, #8]
LBB0_3:
Lloh2:
	adrp	x8, _I3C_CCC_GETMRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I3C_CCC_GETMRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, sp
	add	x3, sp, #8
	mov	w1, #1
	mov	w4, #1
	bl	_i3c_ccc_cmd_init
	mov	x1, sp
	mov	x0, x21
	bl	_i3c_master_send_ccc_cmd_locked
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [sp, #8]
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x20, #4]
	bl	_be16_to_cpu
	str	w0, [x19, #8]
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	w21, #0
	ldr	w8, [x20]
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	add	x0, sp, #8
	bl	_i3c_ccc_cmd_dest_cleanup
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I3C_BCR_IBI_PAYLOAD,4,2        ; @I3C_BCR_IBI_PAYLOAD
	.comm	_I3C_CCC_GETMRL,4,2             ; @I3C_CCC_GETMRL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i3c_master_getmrl_locked
.subsections_via_symbols
