	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd718xx_i2c_probe
_bd718xx_i2c_probe:                     ## @bd718xx_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	%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, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	%rax, 32(%r15)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 8(%r15)
	movq	%r14, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	_bd718xx_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	24(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	24(%r15), %esi
	movq	32(%r15), %rdx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, (%rsp)
	movq	_bd718xx_irq_chip@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_8:
	movq	%r15, %rdi
	callq	_bd718xx_init_press_duration
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movl	(%r15), %edi
	movq	_BD718XX_INT_PWRBTN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_irq_get_virq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	movq	_button@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_bd718xx_mfd_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movl	(%r15), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No IRQ configured\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bd718xx_regmap_config,4,2      ## @bd718xx_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"regmap initialization failed\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_bd718xx_irq_chip,4,2           ## @bd718xx_irq_chip
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add irq_chip\n"

	.comm	_BD718XX_INT_PWRBTN_S,4,2       ## @BD718XX_INT_PWRBTN_S
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get the IRQ\n"

	.comm	_button,4,2                     ## @button
	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_bd718xx_mfd_cells,4,2          ## @bd718xx_mfd_cells
L_.str.4:                               ## @.str.4
	.asciz	"Failed to create subdevices\n"

	.no_dead_strip	_bd718xx_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd718xx_i2c_probe
_bd718xx_i2c_probe:                     ; @bd718xx_i2c_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	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19, #8]
	str	x8, [x0, #32]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #8]
	str	x19, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh3:
	adrp	x1, _bd718xx_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bd718xx_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
	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_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w1, [x20, #24]
	ldr	x2, [x20, #32]
Lloh13:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x5, _bd718xx_irq_chip@GOTPAGE
Lloh17:
	ldr	x5, [x5, _bd718xx_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	w4, #0
	mov	x6, x20
	bl	_devm_regmap_add_irq_chip
	cbz	w0, LBB0_11
; %bb.9:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_11:
	mov	x0, x20
	bl	_bd718xx_init_press_duration
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.12:
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _BD718XX_INT_PWRBTN_S@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BD718XX_INT_PWRBTN_S@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_regmap_irq_get_virq
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.13:
Lloh23:
	adrp	x8, _button@GOTPAGE
Lloh24:
	ldr	x8, [x8, _button@GOTPAGEOFF]
Lloh25:
	str	w21, [x8]
	ldr	x21, [x20, #16]
Lloh26:
	adrp	x8, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
Lloh29:
	adrp	x8, _bd718xx_mfd_cells@GOTPAGE
Lloh30:
	ldr	x8, [x8, _bd718xx_mfd_cells@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x24, x0
	ldr	w0, [x20]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.14:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_15:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No IRQ configured\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bd718xx_regmap_config,4,2      ; @bd718xx_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"regmap initialization failed\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_bd718xx_irq_chip,4,2           ; @bd718xx_irq_chip
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add irq_chip\n"

	.comm	_BD718XX_INT_PWRBTN_S,4,2       ; @BD718XX_INT_PWRBTN_S
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get the IRQ\n"

	.comm	_button,4,2                     ; @button
	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_bd718xx_mfd_cells,4,2          ; @bd718xx_mfd_cells
l_.str.4:                               ; @.str.4
	.asciz	"Failed to create subdevices\n"

	.no_dead_strip	_bd718xx_i2c_probe
.subsections_via_symbols
