	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm590xx_i2c_probe
_bcm590xx_i2c_probe:                    ## @bcm590xx_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	%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	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 32(%r15)
	movq	%rbx, 24(%r15)
	movq	_bcm590xx_regmap_config_pri@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %r12d
	movl	8(%rbx), %ebx
	movl	$2, %edi
	callq	_BIT
	orl	%eax, %r12d
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_i2c_new_dummy_device
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r15), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	(%r15), %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	(%r15), %rdi
	movq	_bcm590xx_regmap_config_sec@GOTPCREL(%rip), %rsi
	callq	_devm_regmap_init_i2c
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	(%r15), %rdi
	addq	$4, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	(%r15), %rdi
	callq	_i2c_unregister_device
	jmp	LBB0_10
LBB0_7:
	movq	_bcm590xx_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_10
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bcm590xx_regmap_config_pri,4,2 ## @bcm590xx_regmap_config_pri
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"primary regmap init failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to add secondary I2C device\n"

	.comm	_bcm590xx_regmap_config_sec,4,2 ## @bcm590xx_regmap_config_sec
L_.str.2:                               ## @.str.2
	.asciz	"secondary regmap init failed: %d\n"

	.comm	_bcm590xx_devs,4,2              ## @bcm590xx_devs
L_.str.3:                               ## @.str.3
	.asciz	"failed to add sub-devices: %d\n"

	.no_dead_strip	_bcm590xx_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm590xx_i2c_probe
_bcm590xx_i2c_probe:                    ; @bcm590xx_i2c_probe
	.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	x21, x0
	add	x20, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	stp	x21, x20, [x19, #24]
Lloh3:
	adrp	x1, _bcm590xx_regmap_config_pri@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bcm590xx_regmap_config_pri@GOTPAGEOFF]
	mov	x0, x21
	bl	_devm_regmap_init_i2c
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	ldr	w22, [x21, #8]
	ldr	w21, [x21]
	mov	w0, #2
	bl	_BIT
	orr	w1, w0, w21
	mov	x0, x22
	bl	_i2c_new_dummy_device
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
	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
	b	_PTR_ERR
LBB0_7:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	x0, [x19]
Lloh12:
	adrp	x1, _bcm590xx_regmap_config_sec@GOTPAGE
Lloh13:
	ldr	x1, [x1, _bcm590xx_regmap_config_sec@GOTPAGEOFF]
	bl	_devm_regmap_init_i2c
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x8, [x19]
	add	x0, x8, #4
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_9:
	ldr	x0, [x19]
	bl	_i2c_unregister_device
	b	LBB0_4
LBB0_10:
Lloh16:
	adrp	x8, _bcm590xx_devs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bcm590xx_devs@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	w21, #0
	tbz	w0, #31, LBB0_4
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x21, x22
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bcm590xx_regmap_config_pri,4,2 ; @bcm590xx_regmap_config_pri
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"primary regmap init failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to add secondary I2C device\n"

	.comm	_bcm590xx_regmap_config_sec,4,2 ; @bcm590xx_regmap_config_sec
l_.str.2:                               ; @.str.2
	.asciz	"secondary regmap init failed: %d\n"

	.comm	_bcm590xx_devs,4,2              ; @bcm590xx_devs
l_.str.3:                               ; @.str.3
	.asciz	"failed to add sub-devices: %d\n"

	.no_dead_strip	_bcm590xx_i2c_probe
.subsections_via_symbols
