	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3c_master_retrieve_dev_info
_i3c_master_retrieve_dev_info:          ## @i3c_master_retrieve_dev_info
	.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
	movq	%rdi, %rbx
	callq	_i3c_dev_get_master
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i3c_bus_get_addr_slot_status
	movq	_I3C_ADDR_SLOT_RSVD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_1
## %bb.3:
	movq	_I3C_ADDR_SLOT_I2C_DEV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_getpid_locked
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_getbcr_locked
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_getdcr_locked
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movl	(%rbx), %eax
	movq	_I3C_BCR_MAX_DATA_SPEED_LIM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_getmxds_locked
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movl	(%rbx), %eax
LBB0_10:
	movq	_I3C_BCR_IBI_PAYLOAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movl	$1, 4(%rbx)
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_getmrl_locked
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_getmwl_locked
	movq	_I3C_BCR_HDR_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_gethdrcap_locked
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I3C_ADDR_SLOT_RSVD,4,2         ## @I3C_ADDR_SLOT_RSVD
	.comm	_I3C_ADDR_SLOT_I2C_DEV,4,2      ## @I3C_ADDR_SLOT_I2C_DEV
	.comm	_I3C_BCR_MAX_DATA_SPEED_LIM,4,2 ## @I3C_BCR_MAX_DATA_SPEED_LIM
	.comm	_I3C_BCR_IBI_PAYLOAD,4,2        ## @I3C_BCR_IBI_PAYLOAD
	.comm	_I3C_BCR_HDR_CAP,4,2            ## @I3C_BCR_HDR_CAP
	.no_dead_strip	_i3c_master_retrieve_dev_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i3c_master_retrieve_dev_info
_i3c_master_retrieve_dev_info:          ; @i3c_master_retrieve_dev_info
	.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
	mov	x19, x0
	bl	_i3c_dev_get_master
	ldr	w1, [x19, #8]
	cbz	w1, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_i3c_bus_get_addr_slot_status
Lloh0:
	adrp	x8, _I3C_ADDR_SLOT_RSVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I3C_ADDR_SLOT_RSVD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I3C_ADDR_SLOT_I2C_DEV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I3C_ADDR_SLOT_I2C_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_getpid_locked
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_getbcr_locked
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_getdcr_locked
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _I3C_BCR_MAX_DATA_SPEED_LIM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I3C_BCR_MAX_DATA_SPEED_LIM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_getmxds_locked
	cbnz	w0, LBB0_6
; %bb.9:
	ldr	w8, [x19]
LBB0_10:
Lloh12:
	adrp	x9, _I3C_BCR_IBI_PAYLOAD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I3C_BCR_IBI_PAYLOAD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_getmrl_locked
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_getmwl_locked
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _I3C_BCR_HDR_CAP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I3C_BCR_HDR_CAP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_i3c_master_gethdrcap_locked
	cbnz	w0, LBB0_6
LBB0_14:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I3C_ADDR_SLOT_RSVD,4,2         ; @I3C_ADDR_SLOT_RSVD
	.comm	_I3C_ADDR_SLOT_I2C_DEV,4,2      ; @I3C_ADDR_SLOT_I2C_DEV
	.comm	_I3C_BCR_MAX_DATA_SPEED_LIM,4,2 ; @I3C_BCR_MAX_DATA_SPEED_LIM
	.comm	_I3C_BCR_IBI_PAYLOAD,4,2        ; @I3C_BCR_IBI_PAYLOAD
	.comm	_I3C_BCR_HDR_CAP,4,2            ; @I3C_BCR_HDR_CAP
	.no_dead_strip	_i3c_master_retrieve_dev_info
.subsections_via_symbols
