	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si476x_core_stop               ## -- Begin function si476x_core_stop
	.p2align	4, 0x90
_si476x_core_stop:                      ## @si476x_core_stop
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$16, %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_atomic_set
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movl	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_si476x_core_cmd_power_down
	movl	%eax, %r14d
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_disable_irq
	testl	%r15d, %r15d
	jne	LBB0_8
	jmp	LBB0_6
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	testl	%r15d, %r15d
	jne	LBB0_8
LBB0_6:
	movl	(%rbx), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value_cansleep
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si476x_core_stop               ; -- Begin function si476x_core_stop
	.p2align	2
_si476x_core_stop:                      ; @si476x_core_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	add	x0, x0, #16
	mov	w1, #0
	bl	_atomic_set
	cbz	w20, LBB0_2
; %bb.1:
	str	wzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_si476x_core_cmd_power_down
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_disable_irq
	cbnz	w20, LBB0_8
	b	LBB0_6
LBB0_5:
	add	x0, x19, #4
	bl	_cancel_delayed_work_sync
	cbnz	w20, LBB0_8
LBB0_6:
	ldr	w0, [x19]
	bl	_gpio_is_valid
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpio_set_value_cansleep
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
