	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i3c_master_set_info            ## -- Begin function i3c_master_set_info
	.p2align	4, 0x90
_i3c_master_set_info:                   ## @i3c_master_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	addq	$8, %rdi
	movl	4(%rsi), %esi
	callq	_i3c_bus_dev_addr_is_avail
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_I3C_BCR_DEVICE_ROLE
	movq	_I3C_BCR_I3C_MASTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 16(%r14)
	jne	LBB0_1
LBB0_4:
	cmpq	$0, (%r14)
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i3c_master_alloc_i3c_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	%r15, (%r14)
	movq	%r15, 8(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i3c_master_attach_i3c_dev
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_i3c_master_free_i3c_dev
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I3C_BCR_I3C_MASTER,8,3         ## @I3C_BCR_I3C_MASTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i3c_master_set_info            ; -- Begin function i3c_master_set_info
	.p2align	2
_i3c_master_set_info:                   ; @i3c_master_set_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	x20, x1
	mov	x19, x0
	add	x0, x0, #8
	ldr	w1, [x1, #4]
	bl	_i3c_bus_dev_addr_is_avail
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	bl	_I3C_BCR_DEVICE_ROLE
Lloh0:
	adrp	x8, _I3C_BCR_I3C_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I3C_BCR_I3C_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_4
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_i3c_master_alloc_i3c_dev
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_8:
	stp	x20, x20, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_i3c_master_attach_i3c_dev
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.9:
	mov	x0, x20
	bl	_i3c_master_free_i3c_dev
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I3C_BCR_I3C_MASTER,8,3         ; @I3C_BCR_I3C_MASTER
.subsections_via_symbols
