	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_shutdown
_trf7970a_shutdown:                     ## @trf7970a_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	jae	LBB0_1
## %bb.2:
	movq	_ECANCELED@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_trf7970a_send_err_upstream
	jmp	LBB0_3
LBB0_1:
	addl	$-133, %eax
	cmpl	$2, %eax
	jae	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_trf7970a_switch_rf_off
LBB0_4:
	movl	4(%rbx), %edi
	callq	_pm_runtime_disable
	movl	4(%rbx), %edi
	callq	_pm_runtime_set_suspended
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trf7970a_power_down            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.no_dead_strip	_trf7970a_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_shutdown
_trf7970a_shutdown:                     ; @trf7970a_shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_trf7970a_send_err_upstream
	b	LBB0_3
LBB0_2:
	sub	w8, w8, #133
	cmp	w8, #2
	b.hs	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_trf7970a_switch_rf_off
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_disable
	ldr	w0, [x19, #4]
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trf7970a_power_down
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.no_dead_strip	_trf7970a_shutdown
.subsections_via_symbols
