	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd9571mwv_probe
_bd9571mwv_probe:                       ## @bd9571mwv_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 8(%r12)
	movl	(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	_bd9571mwv_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	16(%r12), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_3:
	movq	%r12, %rdi
	callq	_bd9571mwv_identify
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	4(%r12), %esi
	movl	16(%r12), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bd9571mwv_irq_chip@GOTPCREL(%rip), %r8
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_regmap_add_irq_chip
	movq	8(%r12), %r15
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_6:
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_bd9571mwv_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_regmap_del_irq_chip
LBB0_8:
	movl	%ebx, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bd9571mwv_regmap_config,4,2    ## @bd9571mwv_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize register map\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_bd9571mwv_irq_chip,4,2         ## @bd9571mwv_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register IRQ chip\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_bd9571mwv_cells,4,2            ## @bd9571mwv_cells
	.no_dead_strip	_bd9571mwv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd9571mwv_probe
_bd9571mwv_probe:                       ; @bd9571mwv_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	add	x21, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x21, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19, #4]
Lloh3:
	adrp	x1, _bd9571mwv_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bd9571mwv_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19, #16]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_bd9571mwv_identify
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #4]
Lloh10:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x4, _bd9571mwv_irq_chip@GOTPAGE
Lloh14:
	ldr	x4, [x4, _bd9571mwv_irq_chip@GOTPAGEOFF]
	mov	w3, #0
	mov	x5, x19
	bl	_regmap_add_irq_chip
	ldr	x21, [x19, #8]
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x8, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _bd9571mwv_cells@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bd9571mwv_cells@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	w0, [x19]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.8:
	ldp	w1, w0, [x19]
	bl	_regmap_del_irq_chip
LBB0_9:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bd9571mwv_regmap_config,4,2    ; @bd9571mwv_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize register map\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_bd9571mwv_irq_chip,4,2         ; @bd9571mwv_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register IRQ chip\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_bd9571mwv_cells,4,2            ; @bd9571mwv_cells
	.no_dead_strip	_bd9571mwv_probe
.subsections_via_symbols
