	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bd70528_i2c_probe
LCPI0_0:
	.long	32                              ## 0x20
	.long	16                              ## 0x10
	.long	64                              ## 0x40
	.long	80                              ## 0x50
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bd70528_i2c_probe:                     ## @bd70528_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, %r15
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	_ROHM_CHIP_TYPE_BD70528@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_bd70528_regmap@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	(%r14), %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	%r15, %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_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_bd70528_irqs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	$0, (%rdi,%r13)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r13
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	_BD70528_NUM_OF_GPIOS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_12
## %bb.10:
	movq	(%r12), %rcx
	xorl	%edx, %edx
	movq	_BD70528_INT_GPIO0@GOTPCREL(%rip), %r9
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [32,16,64,80]
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %r10
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %r11
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r9), %rdi
	addq	%rsi, %rdi
	leaq	(%rdi,%rdi,2), %rdi
	movl	%edx, 4(%rcx,%rdi,8)
	movups	%xmm0, 8(%rcx,%rdi,8)
	movl	(%r11), %ebx
	orl	(%r10), %ebx
	orl	(%rax), %ebx
	movl	%ebx, (%rcx,%rdi,8)
	incq	%rsi
	addl	$2, %edx
	cmpl	(%r8), %esi
	jl	LBB0_11
LBB0_12:
	movl	(%r14), %esi
	movl	4(%r15), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	_bd70528_irq_chip@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%r13d, %ebx
	jmp	LBB0_16
LBB0_14:
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movl	(%r14), %edi
	movq	_BD70528_REG_INT_MAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BD70528_INT_GPIO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_bd70528_mfd_cells@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_16
	.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	_ROHM_CHIP_TYPE_BD70528,4,2     ## @ROHM_CHIP_TYPE_BD70528
	.comm	_bd70528_regmap,4,2             ## @bd70528_regmap
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize Regmap\n"

	.comm	_bd70528_irqs,8,3               ## @bd70528_irqs
	.comm	_BD70528_NUM_OF_GPIOS,4,2       ## @BD70528_NUM_OF_GPIOS
	.comm	_BD70528_INT_GPIO0,4,2          ## @BD70528_INT_GPIO0
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_bd70528_irq_chip,4,2           ## @bd70528_irq_chip
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add IRQ chip\n"

L_.str.3:                               ## @.str.3
	.asciz	"Registered %d IRQs for chip\n"

	.comm	_BD70528_REG_INT_MAIN_MASK,4,2  ## @BD70528_REG_INT_MAIN_MASK
	.comm	_BD70528_INT_GPIO_MASK,4,2      ## @BD70528_INT_GPIO_MASK
	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_bd70528_mfd_cells,8,3          ## @bd70528_mfd_cells
L_.str.4:                               ## @.str.4
	.asciz	"Failed to create subdevices\n"

	.no_dead_strip	_bd70528_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bd70528_i2c_probe
lCPI0_0:
	.long	32                              ; 0x20
	.long	16                              ; 0x10
	.long	64                              ; 0x40
	.long	80                              ; 0x50
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bd70528_i2c_probe:                     ; @bd70528_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, [x0, #4]
	cbz	w8, 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, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x0, x0, #8
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh3:
	adrp	x8, _ROHM_CHIP_TYPE_BD70528@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROHM_CHIP_TYPE_BD70528@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh6:
	adrp	x1, _bd70528_regmap@GOTPAGE
Lloh7:
	ldr	x1, [x1, _bd70528_regmap@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh16:
	adrp	x21, _bd70528_irqs@GOTPAGE
Lloh17:
	ldr	x21, [x21, _bd70528_irqs@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	str	wzr, [x0, x22]
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #24
	cmp	x23, w0, sxtw
	b.lt	LBB0_10
LBB0_11:
Lloh18:
	adrp	x8, _BD70528_NUM_OF_GPIOS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BD70528_NUM_OF_GPIOS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w9, #0
	mov	x10, #0
	ldr	x11, [x21]
Lloh20:
	adrp	x12, _BD70528_INT_GPIO0@GOTPAGE
Lloh21:
	ldr	x12, [x12, _BD70528_INT_GPIO0@GOTPAGEOFF]
	mov	w13, #24
Lloh22:
	adrp	x14, lCPI0_0@PAGE
Lloh23:
	ldr	q0, [x14, lCPI0_0@PAGEOFF]
Lloh24:
	adrp	x14, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh25:
	ldr	x14, [x14, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
Lloh26:
	adrp	x15, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh27:
	ldr	x15, [x15, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh28:
	adrp	x16, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh29:
	ldr	x16, [x16, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x17, [x12]
	add	x17, x10, x17
	madd	x17, x17, x13, x11
	str	w9, [x17, #4]
	stur	q0, [x17, #8]
	ldr	w0, [x14]
	ldr	w1, [x15]
	orr	w0, w1, w0
	ldr	w1, [x16]
	orr	w0, w0, w1
	str	w0, [x17]
	ldr	w17, [x8]
	add	x10, x10, #1
	add	w9, w9, #2
	cmp	w10, w17
	b.lt	LBB0_13
LBB0_14:
	ldr	w1, [x20]
	ldr	w2, [x19, #4]
Lloh30:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x22, _bd70528_irq_chip@GOTPAGE
Lloh34:
	ldr	x22, [x22, _bd70528_irq_chip@GOTPAGEOFF]
	add	x6, sp, #8
	mov	x0, x19
	mov	w4, #0
	mov	x5, x22
	bl	_devm_regmap_add_irq_chip
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_16:
	ldr	w2, [x22]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x20]
Lloh39:
	adrp	x8, _BD70528_REG_INT_MAIN_MASK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BD70528_REG_INT_MAIN_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _BD70528_INT_GPIO_MASK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BD70528_INT_GPIO_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
Lloh45:
	adrp	x8, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh47:
	ldr	w20, [x8]
Lloh48:
	adrp	x8, _bd70528_mfd_cells@GOTPAGE
Lloh49:
	ldr	x8, [x8, _bd70528_mfd_cells@GOTPAGEOFF]
Lloh50:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.17:
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdrp	Lloh22, Lloh24
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh51, Lloh52
	.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	_ROHM_CHIP_TYPE_BD70528,4,2     ; @ROHM_CHIP_TYPE_BD70528
	.comm	_bd70528_regmap,4,2             ; @bd70528_regmap
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize Regmap\n"

	.comm	_bd70528_irqs,8,3               ; @bd70528_irqs
	.comm	_BD70528_NUM_OF_GPIOS,4,2       ; @BD70528_NUM_OF_GPIOS
	.comm	_BD70528_INT_GPIO0,4,2          ; @BD70528_INT_GPIO0
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_bd70528_irq_chip,4,2           ; @bd70528_irq_chip
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add IRQ chip\n"

l_.str.3:                               ; @.str.3
	.asciz	"Registered %d IRQs for chip\n"

	.comm	_BD70528_REG_INT_MAIN_MASK,4,2  ; @BD70528_REG_INT_MAIN_MASK
	.comm	_BD70528_INT_GPIO_MASK,4,2      ; @BD70528_INT_GPIO_MASK
	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_bd70528_mfd_cells,8,3          ; @bd70528_mfd_cells
l_.str.4:                               ; @.str.4
	.asciz	"Failed to create subdevices\n"

	.no_dead_strip	_bd70528_i2c_probe
.subsections_via_symbols
