	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si476x_core_set_power_state    ## -- Begin function si476x_core_set_power_state
	.p2align	4, 0x90
_si476x_core_set_power_state:           ## @si476x_core_set_power_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SI476X_POWER_INCONSISTENT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movl	%esi, %r12d
	xorl	%ebx, %ebx
	cmpq	%r12, %rax
	je	LBB0_14
## %bb.3:
	cmpl	$129, %esi
	je	LBB0_9
## %bb.4:
	cmpl	$128, %esi
	jne	LBB0_13
## %bb.5:
	movl	8(%r14), %edi
	callq	_ARRAY_SIZE
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	$100, %edi
	callq	_udelay
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_si476x_core_start
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movl	%eax, %ebx
	movq	%r12, (%r14)
	jmp	LBB0_14
LBB0_9:
	movq	%r12, (%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_si476x_core_stop
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:
	movq	(%r15), %rax
	movq	%rax, (%r14)
LBB0_11:
	movl	8(%r14), %edi
	callq	_ARRAY_SIZE
	movl	8(%r14), %esi
	movl	%eax, %edi
	callq	_regulator_bulk_disable
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_12
LBB0_13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %ebx
LBB0_12:
	movq	(%r15), %rax
	movq	%rax, (%r14)
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI476X_POWER_INCONSISTENT,8,3  ## @SI476X_POWER_INCONSISTENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The device in inconsistent power state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si476x_core_set_power_state    ; -- Begin function si476x_core_set_power_state
	.p2align	2
_si476x_core_set_power_state:           ; @si476x_core_set_power_state
	.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]
Lloh0:
	adrp	x20, _SI476X_POWER_INCONSISTENT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SI476X_POWER_INCONSISTENT@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_2:
	mov	w21, w1
	cmp	x8, x21
	b.eq	LBB0_13
; %bb.3:
	cmp	w1, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w1, #128
	b.ne	LBB0_12
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_ARRAY_SIZE
	ldr	w1, [x19, #8]
	bl	_regulator_bulk_enable
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	bl	_si476x_core_start
	tbnz	w0, #31, LBB0_10
; %bb.7:
	str	x21, [x19]
	b	LBB0_14
LBB0_8:
	str	x21, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_si476x_core_stop
	tbz	w0, #31, LBB0_10
; %bb.9:
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_ARRAY_SIZE
	ldr	w1, [x19, #8]
	bl	_regulator_bulk_disable
	tbz	w0, #31, LBB0_14
LBB0_11:
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_14
LBB0_12:
	bl	_BUG
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SI476X_POWER_INCONSISTENT,8,3  ; @SI476X_POWER_INCONSISTENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The device in inconsistent power state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
