	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_i3c_master_daa
_dw_i3c_master_daa:                     ## @dw_i3c_master_daa
	.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	%rdi, %r14
	callq	_to_dw_i3c_master
	movq	%rax, %r13
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%r13)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.1:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	notl	%r12d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_i3c_master_get_free_addr
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	movq	8(%r13), %rax
	movl	%r15d, (%rax,%rbx,4)
	movl	%r15d, %edi
	callq	_even_parity
	shll	$7, %eax
	movl	%r15d, %edi
	orl	%eax, %edi
	callq	_DEV_ADDR_TABLE_DYNAMIC_ADDR
	movl	%eax, %r12d
	movq	24(%r13), %r14
	movl	16(%r13), %edi
	movl	%ebx, %esi
	callq	_DEV_ADDR_TABLE_LOC
	addq	%rax, %r14
	movl	%r12d, %edi
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	callq	_writel
	jmp	LBB0_7
LBB0_8:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_dw_i3c_master_alloc_xfer
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_dw_i3c_master_get_free_pos
	movl	%eax, %ebx
	movq	8(%r12), %r15
	movl	$1, (%r15)
	movl	4(%r13), %edi
	subl	%eax, %edi
	callq	_COMMAND_PORT_DEV_COUNT
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_COMMAND_PORT_DEV_INDEX
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_I3C_CCC_ENTDAA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_COMMAND_PORT_CMD
	orl	%ebx, %eax
	movq	_COMMAND_PORT_ADDR_ASSGN_CMD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_COMMAND_PORT_TOC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_COMMAND_PORT_ROC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dw_i3c_master_enqueue_xfer
	movq	_XFER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dw_i3c_master_dequeue_xfer
LBB0_12:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %edi
	notl	%edi
	addl	4(%r13), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_GENMASK
	cmpl	$0, 4(%r13)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_17
## %bb.13:
	movl	%eax, %ebx
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	movslq	4(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_BIT
	testl	%eax, %ebx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r14, %rdi
	callq	_i3c_master_add_i3c_dev_locked
	jmp	LBB0_16
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dw_i3c_master_free_xfer
	movq	_I3C_BROADCAST_ADDR@GOTPCREL(%rip), %rax
	movq	_I3C_CCC_EVENT_HJ@GOTPCREL(%rip), %rcx
	movq	_I3C_CCC_EVENT_MR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_I3C_CCC_EVENT_SIR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i3c_master_disec_locked
	jmp	LBB0_18
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I3C_CCC_ENTDAA,4,2             ## @I3C_CCC_ENTDAA
	.comm	_COMMAND_PORT_ADDR_ASSGN_CMD,4,2 ## @COMMAND_PORT_ADDR_ASSGN_CMD
	.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	_I3C_BROADCAST_ADDR,4,2         ## @I3C_BROADCAST_ADDR
	.comm	_I3C_CCC_EVENT_HJ,4,2           ## @I3C_CCC_EVENT_HJ
	.comm	_I3C_CCC_EVENT_MR,4,2           ## @I3C_CCC_EVENT_MR
	.comm	_I3C_CCC_EVENT_SIR,4,2          ## @I3C_CCC_EVENT_SIR
	.no_dead_strip	_dw_i3c_master_daa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_i3c_master_daa
_dw_i3c_master_daa:                     ; @dw_i3c_master_daa
	.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, x0
	bl	_to_dw_i3c_master
	mov	x20, x0
	ldp	w24, w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
	mov	w22, #0
	mvn	w25, w24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	tst	w0, w25
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w22, #1
	mov	x0, x19
	bl	_i3c_master_get_free_addr
	tbnz	w0, #31, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x8, [x20, #8]
	str	w0, [x8, x21, lsl #2]
	bl	_even_parity
	orr	w0, w22, w0, lsl #7
	bl	_DEV_ADDR_TABLE_DYNAMIC_ADDR
	mov	x23, x0
	ldr	x26, [x20, #24]
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_DEV_ADDR_TABLE_LOC
	add	x1, x0, x26
	mov	x0, x23
	bl	_writel
	b	LBB0_2
LBB0_6:
	mov	w23, #1
	mov	x0, x20
	mov	w1, #1
	bl	_dw_i3c_master_alloc_xfer
	cbz	x0, LBB0_15
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	_dw_i3c_master_get_free_pos
	mov	x22, x0
	ldr	x25, [x21, #8]
	str	w23, [x25]
	ldr	w8, [x20, #4]
	sub	w0, w8, w0
	bl	_COMMAND_PORT_DEV_COUNT
	mov	x23, x0
	mov	x0, x22
	bl	_COMMAND_PORT_DEV_INDEX
	orr	w22, w0, w23
Lloh0:
	adrp	x8, _I3C_CCC_ENTDAA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I3C_CCC_ENTDAA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_COMMAND_PORT_CMD
Lloh3:
	adrp	x8, _COMMAND_PORT_ADDR_ASSGN_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMMAND_PORT_ADDR_ASSGN_CMD@GOTPAGEOFF]
	orr	w9, w22, w0
Lloh5:
	ldr	w8, [x8]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _COMMAND_PORT_TOC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COMMAND_PORT_TOC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _COMMAND_PORT_ROC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _COMMAND_PORT_ROC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x25, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_dw_i3c_master_enqueue_xfer
Lloh12:
	adrp	x8, _XFER_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XFER_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wait_for_completion_timeout
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_dw_i3c_master_dequeue_xfer
LBB0_9:
	ldr	w8, [x20, #4]
	ldr	w9, [x25, #8]
	mvn	w9, w9
	add	w0, w8, w9
	mov	w1, #0
	bl	_GENMASK
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x22, #0
	and	w23, w0, w24
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BIT
	tst	w23, w0
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_i3c_master_add_i3c_dev_locked
	b	LBB0_11
LBB0_14:
	mov	x0, x21
	bl	_dw_i3c_master_free_xfer
Lloh15:
	adrp	x8, _I3C_BROADCAST_ADDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I3C_BROADCAST_ADDR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _I3C_CCC_EVENT_HJ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I3C_CCC_EVENT_HJ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _I3C_CCC_EVENT_MR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I3C_CCC_EVENT_MR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _I3C_CCC_EVENT_SIR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I3C_CCC_EVENT_SIR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_i3c_master_disec_locked
	mov	w0, #0
	b	LBB0_18
LBB0_15:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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	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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I3C_CCC_ENTDAA,4,2             ; @I3C_CCC_ENTDAA
	.comm	_COMMAND_PORT_ADDR_ASSGN_CMD,4,2 ; @COMMAND_PORT_ADDR_ASSGN_CMD
	.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	_I3C_BROADCAST_ADDR,4,2         ; @I3C_BROADCAST_ADDR
	.comm	_I3C_CCC_EVENT_HJ,4,2           ; @I3C_CCC_EVENT_HJ
	.comm	_I3C_CCC_EVENT_MR,4,2           ; @I3C_CCC_EVENT_MR
	.comm	_I3C_CCC_EVENT_SIR,4,2          ; @I3C_CCC_EVENT_SIR
	.no_dead_strip	_dw_i3c_master_daa
.subsections_via_symbols
