	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3c_master_send_ccc_cmd_locked
_i3c_master_send_ccc_cmd_locked:        ## @i3c_master_send_ccc_cmd_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.6:
	leaq	8(%rbx), %rdi
	callq	_rwsem_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_7
LBB0_5:
	xorl	%edi, %edi
LBB0_7:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movq	_I3C_CCC_DIRECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r14)
	je	LBB0_13
## %bb.11:
	cmpl	$0, 20(%r14)
	je	LBB0_2
## %bb.12:
	cmpl	$0, 16(%r14)
	je	LBB0_2
LBB0_13:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_9
## %bb.15:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
LBB0_16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %ecx
	movq	8(%r14), %rax
	movq	_I3C_ERROR_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	cmovel	%ecx, %eax
	jmp	LBB0_19
LBB0_9:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_I3C_CCC_DIRECT,4,2             ## @I3C_CCC_DIRECT
	.comm	_I3C_ERROR_UNKNOWN,8,3          ## @I3C_ERROR_UNKNOWN
	.no_dead_strip	_i3c_master_send_ccc_cmd_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_send_ccc_cmd_locked
_i3c_master_send_ccc_cmd_locked:        ; @i3c_master_send_ccc_cmd_locked
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, x20, #8
	bl	_rwsem_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	bl	_WARN_ON
	cbz	x0, LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x9, [x20]
	ldr	x8, [x9]
	cbz	x8, LBB0_17
; %bb.9:
	ldr	w10, [x19]
Lloh2:
	adrp	x11, _I3C_CCC_DIRECT@GOTPAGE
Lloh3:
	ldr	x11, [x11, _I3C_CCC_DIRECT@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.10:
	ldr	w10, [x19, #20]
	cbz	w10, LBB0_5
; %bb.11:
	ldr	w10, [x19, #16]
	cbz	w10, LBB0_5
LBB0_12:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	blr	x9
	cbz	w0, LBB0_17
; %bb.14:
	ldr	x8, [x20]
	ldr	x8, [x8]
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_7
; %bb.16:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _I3C_ERROR_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I3C_ERROR_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w0, w0, w8, eq
	b	LBB0_7
LBB0_17:
Lloh8:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_I3C_CCC_DIRECT,4,2             ; @I3C_CCC_DIRECT
	.comm	_I3C_ERROR_UNKNOWN,8,3          ; @I3C_ERROR_UNKNOWN
	.no_dead_strip	_i3c_master_send_ccc_cmd_locked
.subsections_via_symbols
