	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_set_rfdepend_softmute    ## -- Begin function fm_rx_set_rfdepend_softmute
	.p2align	4, 0x90
_fm_rx_set_rfdepend_softmute:           ## @fm_rx_set_rfdepend_softmute
	.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	(%rdi), %rax
	movq	_FM_MODE_RX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	_FM_RX_RF_DEPENDENT_MUTE_ON@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_FM_RX_RF_DEPENDENT_MUTE_OFF@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_fmerr
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r14), %r15
	xorl	%ebx, %ebx
	cmpq	%rsi, %r15
	je	LBB0_9
## %bb.7:
	movq	%rsi, 8(%r14)
	movq	%r14, %rdi
	callq	_fm_config_rx_mute_reg
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	%r15, 8(%r14)
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_MODE_RX,8,3                 ## @FM_MODE_RX
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_FM_RX_RF_DEPENDENT_MUTE_ON,8,3 ## @FM_RX_RF_DEPENDENT_MUTE_ON
	.comm	_FM_RX_RF_DEPENDENT_MUTE_OFF,8,3 ## @FM_RX_RF_DEPENDENT_MUTE_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RF dependent soft mute\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	_fm_rx_set_rfdepend_softmute    ; -- Begin function fm_rx_set_rfdepend_softmute
	.p2align	2
_fm_rx_set_rfdepend_softmute:           ; @fm_rx_set_rfdepend_softmute
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FM_MODE_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM_MODE_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _FM_RX_RF_DEPENDENT_MUTE_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM_RX_RF_DEPENDENT_MUTE_ON@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _FM_RX_RF_DEPENDENT_MUTE_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FM_RX_RF_DEPENDENT_MUTE_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0, #8]
	cmp	x20, x1
	b.eq	LBB0_4
; %bb.3:
	str	x1, [x19, #8]
	mov	x0, x19
	bl	_fm_config_rx_mute_reg
	tbnz	w0, #31, LBB0_9
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	x20, [x19, #8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_MODE_RX,8,3                 ; @FM_MODE_RX
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_FM_RX_RF_DEPENDENT_MUTE_ON,8,3 ; @FM_RX_RF_DEPENDENT_MUTE_ON
	.comm	_FM_RX_RF_DEPENDENT_MUTE_OFF,8,3 ; @FM_RX_RF_DEPENDENT_MUTE_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RF dependent soft mute\n"

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