	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3c_master_rstdaa_locked
_i3c_master_rstdaa_locked:              ## @i3c_master_rstdaa_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_i3c_bus_get_addr_slot_status
	movq	_I3C_BROADCAST_ADDR@GOTPCREL(%rip), %r12
	cmpl	%ebx, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_I3C_ADDR_SLOT_I3C_DEV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_i3c_ccc_cmd_dest_init
	xorl	%edi, %edi
	cmpl	%ebx, (%r12)
	sete	%dil
	callq	_I3C_CCC_RSTDAA
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	movl	$1, %r8d
	callq	_i3c_ccc_cmd_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_send_ccc_cmd_locked
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_i3c_ccc_cmd_dest_cleanup
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I3C_BROADCAST_ADDR,4,2         ## @I3C_BROADCAST_ADDR
	.comm	_I3C_ADDR_SLOT_I3C_DEV,4,2      ## @I3C_ADDR_SLOT_I3C_DEV
	.no_dead_strip	_i3c_master_rstdaa_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_rstdaa_locked
_i3c_master_rstdaa_locked:              ; @i3c_master_rstdaa_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_i3c_bus_get_addr_slot_status
Lloh0:
	adrp	x21, _I3C_BROADCAST_ADDR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I3C_BROADCAST_ADDR@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _I3C_ADDR_SLOT_I3C_DEV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I3C_ADDR_SLOT_I3C_DEV@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	bl	_i3c_ccc_cmd_dest_init
	ldr	w8, [x21]
	cmp	w8, w20
	cset	w0, eq
	bl	_I3C_CCC_RSTDAA
	mov	x2, x0
	mov	x0, sp
	add	x3, sp, #8
	mov	w1, #0
	mov	w4, #1
	bl	_i3c_ccc_cmd_init
	mov	x1, sp
	mov	x0, x19
	bl	_i3c_master_send_ccc_cmd_locked
	mov	x19, x0
	add	x0, sp, #8
	bl	_i3c_ccc_cmd_dest_cleanup
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I3C_BROADCAST_ADDR,4,2         ; @I3C_BROADCAST_ADDR
	.comm	_I3C_ADDR_SLOT_I3C_DEV,4,2      ; @I3C_ADDR_SLOT_I3C_DEV
	.no_dead_strip	_i3c_master_rstdaa_locked
.subsections_via_symbols
