	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77843_init_muic_regmap
_max77843_init_muic_regmap:             ## @max77843_init_muic_regmap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	movq	_I2C_ADDR_MUIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_new_dummy_device
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movl	(%rbx), %edi
	movq	_max77843_muic_regmap_config@GOTPCREL(%rip), %rsi
	callq	_devm_regmap_init_i2c
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	24(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_5:
	movl	(%rbx), %edi
	callq	_i2c_unregister_device
	jmp	LBB0_6
LBB0_3:
	movl	20(%rbx), %esi
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	16(%rbx), %r9
	movq	_max77843_muic_irq_chip@GOTPCREL(%rip), %r8
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	js	LBB0_4
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_ADDR_MUIC,4,2              ## @I2C_ADDR_MUIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate I2C device for MUIC\n"

	.comm	_max77843_muic_regmap_config,4,2 ## @max77843_muic_regmap_config
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_max77843_muic_irq_chip,4,2     ## @max77843_muic_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"Cannot add MUIC IRQ chip\n"

	.no_dead_strip	_max77843_init_muic_regmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77843_init_muic_regmap
_max77843_init_muic_regmap:             ; @max77843_init_muic_regmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x8, _I2C_ADDR_MUIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_ADDR_MUIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_new_dummy_device
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	w0, [x19]
Lloh5:
	adrp	x1, _max77843_muic_regmap_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _max77843_muic_regmap_config@GOTPAGEOFF]
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_PTR_ERR
	mov	x20, x0
LBB0_4:
	ldr	w0, [x19]
	bl	_i2c_unregister_device
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19, #20]
Lloh7:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	add	x5, x19, #16
Lloh16:
	adrp	x4, _max77843_muic_irq_chip@GOTPAGE
Lloh17:
	ldr	x4, [x4, _max77843_muic_irq_chip@GOTPAGEOFF]
	mov	w3, #0
	bl	_regmap_add_irq_chip
	mov	w20, #0
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x20, x21
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_ADDR_MUIC,4,2              ; @I2C_ADDR_MUIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate I2C device for MUIC\n"

	.comm	_max77843_muic_regmap_config,4,2 ; @max77843_muic_regmap_config
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_max77843_muic_irq_chip,4,2     ; @max77843_muic_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"Cannot add MUIC IRQ chip\n"

	.no_dead_strip	_max77843_init_muic_regmap
.subsections_via_symbols
