	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bpmp_i2c_probe
_tegra_bpmp_i2c_probe:                  ## @tegra_bpmp_i2c_probe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movl	4(%r14), %edi
	callq	_dev_get_drvdata
	movl	%eax, 36(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	-20(%rbp), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_tegra_bpmp_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvidia,bpmp-bus-id"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"Tegra BPMP I2C adapter"

	.comm	_tegra_bpmp_i2c_algo,4,2        ## @tegra_bpmp_i2c_algo
	.no_dead_strip	_tegra_bpmp_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_bpmp_i2c_probe
_tegra_bpmp_i2c_probe:                  ; @tegra_bpmp_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
	ldr	w0, [x19, #4]
	bl	_dev_get_drvdata
	str	w0, [x20, #36]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x20, #32]
	mov	x0, x20
	mov	x1, x20
	bl	_i2c_set_adapdata
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	ldr	w0, [x20, #24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh10:
	adrp	x8, _tegra_bpmp_i2c_algo@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tegra_bpmp_i2c_algo@GOTPAGEOFF]
	stp	x19, x8, [x20, #8]
	ldr	w8, [x19]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_i2c_add_adapter
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvidia,bpmp-bus-id"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"Tegra BPMP I2C adapter"

	.comm	_tegra_bpmp_i2c_algo,4,2        ; @tegra_bpmp_i2c_algo
	.no_dead_strip	_tegra_bpmp_i2c_probe
.subsections_via_symbols
