	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_i3c_ccc_get
_dw_i3c_ccc_get:                        ## @dw_i3c_ccc_get
	.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, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movl	8(%rax), %esi
	callq	_dw_i3c_master_get_addr_pos
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_dw_i3c_master_alloc_xfer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	8(%rax), %r13
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r13)
	movl	(%rax), %edi
	movl	%edi, 16(%r13)
	callq	_COMMAND_PORT_ARG_DATA_LEN
	movq	_COMMAND_PORT_TRANSFER_ARG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	movq	_COMMAND_PORT_READ_TRANSFER@GOTPCREL(%rip), %rax
	movq	_COMMAND_PORT_CP@GOTPCREL(%rip), %rcx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_COMMAND_PORT_DEV_INDEX
	movl	%eax, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_COMMAND_PORT_CMD
	orl	%r14d, %eax
	orl	%ebx, %eax
	movq	_COMMAND_PORT_TOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_COMMAND_PORT_ROC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r13)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dw_i3c_master_enqueue_xfer
	movq	%r12, %rdi
	addq	$16, %rdi
	movq	_XFER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dw_i3c_master_dequeue_xfer
LBB0_5:
	movl	(%r12), %ebx
	movq	8(%r12), %rax
	movq	8(%rax), %rax
	movq	_RESPONSE_ERROR_IBA_NACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_I3C_ERROR_M2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_7:
	movq	%r12, %rdi
	callq	_dw_i3c_master_free_xfer
	jmp	LBB0_8
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	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	_COMMAND_PORT_TRANSFER_ARG,4,2  ## @COMMAND_PORT_TRANSFER_ARG
	.comm	_COMMAND_PORT_READ_TRANSFER,4,2 ## @COMMAND_PORT_READ_TRANSFER
	.comm	_COMMAND_PORT_CP,4,2            ## @COMMAND_PORT_CP
	.comm	_COMMAND_PORT_TOC,4,2           ## @COMMAND_PORT_TOC
	.comm	_COMMAND_PORT_ROC,4,2           ## @COMMAND_PORT_ROC
	.comm	_XFER_TIMEOUT,4,2               ## @XFER_TIMEOUT
	.comm	_RESPONSE_ERROR_IBA_NACK,8,3    ## @RESPONSE_ERROR_IBA_NACK
	.comm	_I3C_ERROR_M2,4,2               ## @I3C_ERROR_M2
	.no_dead_strip	_dw_i3c_ccc_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_i3c_ccc_get
_dw_i3c_ccc_get:                        ; @dw_i3c_ccc_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1, #8]
	ldr	w1, [x8, #8]
	bl	_dw_i3c_master_get_addr_pos
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	w1, #1
	bl	_dw_i3c_master_alloc_xfer
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x8, [x19, #8]
	ldr	d0, [x8]
	str	d0, [x23, #16]
	fmov	w0, s0
	bl	_COMMAND_PORT_ARG_DATA_LEN
Lloh0:
	adrp	x8, _COMMAND_PORT_TRANSFER_ARG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND_PORT_TRANSFER_ARG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh3:
	adrp	x9, _COMMAND_PORT_READ_TRANSFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _COMMAND_PORT_READ_TRANSFER@GOTPAGEOFF]
	str	w8, [x23]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _COMMAND_PORT_CP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COMMAND_PORT_CP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	x0, x22
	bl	_COMMAND_PORT_DEV_INDEX
	orr	w22, w24, w0
	ldr	w0, [x19, #4]
	bl	_COMMAND_PORT_CMD
	orr	w8, w22, w0
Lloh9:
	adrp	x9, _COMMAND_PORT_TOC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _COMMAND_PORT_TOC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _COMMAND_PORT_ROC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _COMMAND_PORT_ROC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x23, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_dw_i3c_master_enqueue_xfer
	add	x0, x20, #16
Lloh15:
	adrp	x8, _XFER_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XFER_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_wait_for_completion_timeout
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_dw_i3c_master_dequeue_xfer
LBB0_4:
	ldr	w22, [x20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
Lloh18:
	adrp	x9, _RESPONSE_ERROR_IBA_NACK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RESPONSE_ERROR_IBA_NACK@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _I3C_ERROR_M2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I3C_ERROR_M2@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	mov	x0, x20
	bl	_dw_i3c_master_free_xfer
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_COMMAND_PORT_TRANSFER_ARG,4,2  ; @COMMAND_PORT_TRANSFER_ARG
	.comm	_COMMAND_PORT_READ_TRANSFER,4,2 ; @COMMAND_PORT_READ_TRANSFER
	.comm	_COMMAND_PORT_CP,4,2            ; @COMMAND_PORT_CP
	.comm	_COMMAND_PORT_TOC,4,2           ; @COMMAND_PORT_TOC
	.comm	_COMMAND_PORT_ROC,4,2           ; @COMMAND_PORT_ROC
	.comm	_XFER_TIMEOUT,4,2               ; @XFER_TIMEOUT
	.comm	_RESPONSE_ERROR_IBA_NACK,8,3    ; @RESPONSE_ERROR_IBA_NACK
	.comm	_I3C_ERROR_M2,4,2               ; @I3C_ERROR_M2
	.no_dead_strip	_dw_i3c_ccc_get
.subsections_via_symbols
