	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_modem_show
_ab8500_modem_show:                     ## @ab8500_modem_show
	.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
	movq	(%rdi), %r15
	movq	_AB8500_REGU_CTRL2@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_AB8500_LAST_SIM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_dev_get_drvdata
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_AB8500_REGU_CTRL1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_AB8500_SUPPLY_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	callq	_abx500_get_register_interruptible
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	movq	_AB8500_SUPPLY_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_AB8500_SUPPLY_CONTROL_CONFIG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_seq_printf
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_is_ab9540
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_ab8505
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_AB8505_LAST_SIM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	_AB8500_FIRST_SIM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jg	LBB0_10
## %bb.7:
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	leaq	-56(%rbp), %rcx
	callq	_abx500_get_register_interruptible
	testl	%eax, %eax
	js	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-56(%rbp), %r8d
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_seq_printf
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
LBB0_10:
	movq	_AB8500_REGU_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_AB8500_SUPPLY_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	-52(%rbp), %ecx
	movq	%r15, %rdi
	callq	_abx500_set_register_interruptible
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_13
LBB0_11:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_13:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AB8500_REGU_CTRL2,8,3          ## @AB8500_REGU_CTRL2
	.comm	_AB8500_LAST_SIM_REG,8,3        ## @AB8500_LAST_SIM_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING! This operation can interfer with modem side\nand should only be done with care\n"

	.comm	_AB8500_REGU_CTRL1,8,3          ## @AB8500_REGU_CTRL1
	.comm	_AB8500_SUPPLY_CONTROL_REG,8,3  ## @AB8500_SUPPLY_CONTROL_REG
	.comm	_AB8500_SUPPLY_CONTROL_CONFIG_1,4,2 ## @AB8500_SUPPLY_CONTROL_CONFIG_1
L_.str.1:                               ## @.str.1
	.asciz	" bank 0x%02X:\n"

	.comm	_AB8505_LAST_SIM_REG,8,3        ## @AB8505_LAST_SIM_REG
	.comm	_AB8500_FIRST_SIM_REG,8,3       ## @AB8500_FIRST_SIM_REG
L_.str.2:                               ## @.str.2
	.asciz	"  [0x%02X/0x%02X]: 0x%02X\n"

L_.str.3:                               ## @.str.3
	.asciz	"ab->read fail %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"ab->write fail %d\n"

	.no_dead_strip	_ab8500_modem_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_modem_show
_ab8500_modem_show:                     ; @ab8500_modem_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _AB8500_REGU_CTRL2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AB8500_REGU_CTRL2@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _AB8500_LAST_SIM_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AB8500_LAST_SIM_REG@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	ldr	w0, [x19]
	bl	_dev_get_drvdata
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh8:
	adrp	x25, _AB8500_REGU_CTRL1@GOTPAGE
Lloh9:
	ldr	x25, [x25, _AB8500_REGU_CTRL1@GOTPAGEOFF]
	ldr	x1, [x25]
Lloh10:
	adrp	x26, _AB8500_SUPPLY_CONTROL_REG@GOTPAGE
Lloh11:
	ldr	x26, [x26, _AB8500_SUPPLY_CONTROL_REG@GOTPAGEOFF]
	ldr	x2, [x26]
	add	x3, sp, #24
	mov	x0, x19
	bl	_abx500_get_register_interruptible
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	x1, [x25]
	ldr	x2, [x26]
Lloh12:
	adrp	x8, _AB8500_SUPPLY_CONTROL_CONFIG_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AB8500_SUPPLY_CONTROL_CONFIG_1@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_abx500_set_register_interruptible
	tbnz	w0, #31, LBB0_12
; %bb.2:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_seq_printf
	mov	x0, x22
	bl	_is_ab9540
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_is_ab8505
	cbz	x0, LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _AB8505_LAST_SIM_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AB8505_LAST_SIM_REG@GOTPAGEOFF]
Lloh19:
	ldr	x24, [x8]
LBB0_5:
Lloh20:
	adrp	x8, _AB8500_FIRST_SIM_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AB8500_FIRST_SIM_REG@GOTPAGEOFF]
Lloh22:
	ldr	x22, [x8]
	cmp	x22, x24
	b.gt	LBB0_9
; %bb.6:
	add	x27, x24, #1
Lloh23:
	adrp	x24, l_.str.2@PAGE
Lloh24:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_abx500_get_register_interruptible
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #28]
	stp	x22, x8, [sp]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_seq_printf
	add	x22, x22, #1
	cmp	x27, x22
	b.ne	LBB0_7
LBB0_9:
	ldr	x1, [x25]
	ldr	x2, [x26]
	ldr	w3, [sp, #24]
	mov	x0, x19
	bl	_abx500_set_register_interruptible
	tbnz	w0, #31, LBB0_12
; %bb.10:
	mov	w23, #0
	b	LBB0_14
LBB0_11:
	mov	x23, x0
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x23, x0
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AB8500_REGU_CTRL2,8,3          ; @AB8500_REGU_CTRL2
	.comm	_AB8500_LAST_SIM_REG,8,3        ; @AB8500_LAST_SIM_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING! This operation can interfer with modem side\nand should only be done with care\n"

	.comm	_AB8500_REGU_CTRL1,8,3          ; @AB8500_REGU_CTRL1
	.comm	_AB8500_SUPPLY_CONTROL_REG,8,3  ; @AB8500_SUPPLY_CONTROL_REG
	.comm	_AB8500_SUPPLY_CONTROL_CONFIG_1,4,2 ; @AB8500_SUPPLY_CONTROL_CONFIG_1
l_.str.1:                               ; @.str.1
	.asciz	" bank 0x%02X:\n"

	.comm	_AB8505_LAST_SIM_REG,8,3        ; @AB8505_LAST_SIM_REG
	.comm	_AB8500_FIRST_SIM_REG,8,3       ; @AB8500_FIRST_SIM_REG
l_.str.2:                               ; @.str.2
	.asciz	"  [0x%02X/0x%02X]: 0x%02X\n"

l_.str.3:                               ; @.str.3
	.asciz	"ab->read fail %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"ab->write fail %d\n"

	.no_dead_strip	_ab8500_modem_show
.subsections_via_symbols
