	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3c_master_i2c_adapter_xfer
_i3c_master_i2c_adapter_xfer:           ## @i3c_master_i2c_adapter_xfer
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	callq	_i2c_adapter_to_i3c_master
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rbx
	cmpl	$2, %r15d
	jb	LBB0_11
## %bb.8:
	movl	%r15d, %eax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r12,%rcx,8), %rbx
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_i3c_bus_normaluse_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_find_i2c_dev_by_addr
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	8(%r14), %rcx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	*(%rcx)
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_i3c_bus_normaluse_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_i3c_master_i2c_adapter_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i3c_master_i2c_adapter_xfer
_i3c_master_i2c_adapter_xfer:           ; @i3c_master_i2c_adapter_xfer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_i2c_adapter_to_i3c_master
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.1:
	cbz	x21, LBB0_10
; %bb.2:
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x22, [x21]
	cmp	w19, #2
	b.lo	LBB0_8
; %bb.5:
	mov	w9, w19
	add	x8, x21, #8
	sub	x9, x9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x22, x10
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_8:
	mov	x0, x20
	bl	_i3c_bus_normaluse_lock
	mov	x0, x20
	mov	x1, x22
	bl	_i3c_master_find_i2c_dev_by_addr
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x1, x21
	mov	x2, x19
	blr	x8
	mov	x21, x0
	b	LBB0_14
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_13:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x20
	bl	_i3c_bus_normaluse_unlock
	cmp	w21, #0
	csel	w0, w19, w21, eq
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_i3c_master_i2c_adapter_xfer
.subsections_via_symbols
