	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1273_fm_set_preemphasis
_wl1273_fm_set_preemphasis:             ## @wl1273_fm_set_preemphasis
	.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	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_WL1273_MODE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_WL1273_MODE_SUSPENDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.5:
	cltq
	leaq	l_switch.table.wl1273_fm_set_preemphasis(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	_WL1273_PREMPH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	%r15d, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1273_MODE_OFF,8,3            ## @WL1273_MODE_OFF
	.comm	_WL1273_MODE_SUSPENDED,8,3      ## @WL1273_MODE_SUSPENDED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WL1273_PREMPH_SET,4,2          ## @WL1273_PREMPH_SET
	.no_dead_strip	_wl1273_fm_set_preemphasis
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wl1273_fm_set_preemphasis
l_switch.table.wl1273_fm_set_preemphasis:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1273_fm_set_preemphasis
_wl1273_fm_set_preemphasis:             ; @wl1273_fm_set_preemphasis
	.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
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _WL1273_MODE_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1273_MODE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WL1273_MODE_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WL1273_MODE_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	add	x19, x22, #16
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w20, #128
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, l_switch.table.wl1273_fm_set_preemphasis@PAGE
Lloh10:
	add	x9, x9, l_switch.table.wl1273_fm_set_preemphasis@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
	ldr	x8, [x22, #8]
Lloh11:
	adrp	x9, _WL1273_PREMPH_SET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WL1273_PREMPH_SET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	x0, x22
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	str	w20, [x21]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1273_MODE_OFF,8,3            ; @WL1273_MODE_OFF
	.comm	_WL1273_MODE_SUSPENDED,8,3      ; @WL1273_MODE_SUSPENDED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WL1273_PREMPH_SET,4,2          ; @WL1273_PREMPH_SET
	.no_dead_strip	_wl1273_fm_set_preemphasis
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wl1273_fm_set_preemphasis
l_switch.table.wl1273_fm_set_preemphasis:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	0                               ; 0x0

.subsections_via_symbols
