	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_i3c_master_add_i3c_boardinfo
_of_i3c_master_add_i3c_boardinfo:       ## @of_i3c_master_add_i3c_boardinfo
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	addq	$8, %rdi
	movl	$0, -36(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$20, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:
	movq	_I3C_MAX_ADDR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_6
## %bb.7:
	leaq	4(%r15), %rdi
	callq	_i3c_bus_get_addr_slot_status
	movq	_I3C_ADDR_SLOT_FREE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.8:
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, (%r12)
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	movl	$63, %edi
	movl	$48, %esi
	callq	_GENMASK_ULL
	movl	4(%r12), %edi
	callq	_I3C_PID_RND_LOWER_32BITS
	testq	%rax, %rax
	jne	LBB0_6
## %bb.13:
	movl	-36(%rbp), %eax
	movl	%eax, 8(%r12)
	movq	%r14, %rdi
	callq	_of_node_get
	movl	%eax, 16(%r12)
	addq	$12, %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_10:
	movl	-36(%rbp), %esi
	movq	_I3C_MAX_ADDR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_6
## %bb.11:
	leaq	4(%r15), %rdi
	callq	_i3c_bus_get_addr_slot_status
	movq	_I3C_ADDR_SLOT_FREE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I3C_MAX_ADDR,4,2               ## @I3C_MAX_ADDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I3C_ADDR_SLOT_FREE,4,2         ## @I3C_ADDR_SLOT_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"assigned-address"

	.no_dead_strip	_of_i3c_master_add_i3c_boardinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_i3c_master_add_i3c_boardinfo
_of_i3c_master_add_i3c_boardinfo:       ; @of_i3c_master_add_i3c_boardinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #8
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #20
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w1, [x22]
	cbz	w1, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _I3C_MAX_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I3C_MAX_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, w8
	b.gt	LBB0_12
; %bb.3:
	add	x0, x19, #4
	bl	_i3c_bus_get_addr_slot_status
Lloh6:
	adrp	x8, _I3C_ADDR_SLOT_FREE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I3C_ADDR_SLOT_FREE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.4:
	ldr	w8, [x22]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x21]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_10
LBB0_8:
	mov	w0, #63
	mov	w1, #48
	bl	_GENMASK_ULL
	ldr	w0, [x21, #4]
	bl	_I3C_PID_RND_LOWER_32BITS
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	w8, [sp, #12]
	str	w8, [x21, #8]
	mov	x0, x20
	bl	_of_node_get
	str	w0, [x21, #16]
	add	x0, x21, #12
	mov	x1, x19
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_14
LBB0_10:
	ldr	w1, [sp, #12]
Lloh13:
	adrp	x8, _I3C_MAX_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I3C_MAX_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w1, w8
	b.gt	LBB0_12
; %bb.11:
	add	x0, x19, #4
	bl	_i3c_bus_get_addr_slot_status
Lloh16:
	adrp	x8, _I3C_ADDR_SLOT_FREE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I3C_ADDR_SLOT_FREE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
LBB0_12:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I3C_MAX_ADDR,4,2               ; @I3C_MAX_ADDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I3C_ADDR_SLOT_FREE,4,2         ; @I3C_ADDR_SLOT_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"assigned-address"

	.no_dead_strip	_of_i3c_master_add_i3c_boardinfo
.subsections_via_symbols
