	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_ab9540_dbbrstn
_store_ab9540_dbbrstn:                  ## @store_ab9540_dbbrstn
	.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	%rcx, %rbx
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movsbl	(%r14), %eax
	cmpl	$49, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$48, %eax
	jne	LBB0_7
## %bb.3:
	movq	_AB9540_MODEM_CTRL2_SWDBBRSTN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_5
LBB0_4:
	movq	_AB9540_MODEM_CTRL2_SWDBBRSTN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %r8d
LBB0_5:
	movq	_AB8500_REGU_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AB9540_MODEM_CTRL2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mask_and_set_register_interruptible
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movsbl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_info
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AB9540_MODEM_CTRL2_SWDBBRSTN_BIT,4,2 ## @AB9540_MODEM_CTRL2_SWDBBRSTN_BIT
	.comm	_AB8500_REGU_CTRL2,4,2          ## @AB8500_REGU_CTRL2
	.comm	_AB9540_MODEM_CTRL2_REG,4,2     ## @AB9540_MODEM_CTRL2_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set DBBRSTN %c, err %#x\n"

	.no_dead_strip	_store_ab9540_dbbrstn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_ab9540_dbbrstn
_store_ab9540_dbbrstn:                  ; @store_ab9540_dbbrstn
	.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, x3
	mov	x20, x2
	bl	_dev_get_drvdata
	cbz	x19, LBB0_7
; %bb.1:
	mov	x21, x0
	ldrsb	w8, [x20]
	cmp	w8, #49
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #48
	b.ne	LBB0_7
; %bb.3:
	mov	w4, #0
Lloh0:
	adrp	x8, _AB9540_MODEM_CTRL2_SWDBBRSTN_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AB9540_MODEM_CTRL2_SWDBBRSTN_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _AB9540_MODEM_CTRL2_SWDBBRSTN_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AB9540_MODEM_CTRL2_SWDBBRSTN_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x4, x3
LBB0_5:
Lloh6:
	adrp	x8, _AB8500_REGU_CTRL2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AB8500_REGU_CTRL2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AB9540_MODEM_CTRL2_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AB9540_MODEM_CTRL2_REG@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_mask_and_set_register_interruptible
	cbz	w0, LBB0_7
; %bb.6:
	mov	x3, x0
	ldr	w0, [x21]
	ldrsb	w2, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_7:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AB9540_MODEM_CTRL2_SWDBBRSTN_BIT,4,2 ; @AB9540_MODEM_CTRL2_SWDBBRSTN_BIT
	.comm	_AB8500_REGU_CTRL2,4,2          ; @AB8500_REGU_CTRL2
	.comm	_AB9540_MODEM_CTRL2_REG,4,2     ; @AB9540_MODEM_CTRL2_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set DBBRSTN %c, err %#x\n"

	.no_dead_strip	_store_ab9540_dbbrstn
.subsections_via_symbols
