	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1273_fm_set_tx_power
_wl1273_fm_set_tx_power:                ## @wl1273_fm_set_tx_power
	.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:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_WL1273_POWER_LEV_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$122, %edx
	subq	%r14, %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, (%r15)
LBB0_5:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	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	_WL1273_POWER_LEV_SET,4,2       ## @WL1273_POWER_LEV_SET
	.no_dead_strip	_wl1273_fm_set_tx_power
.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_tx_power
_wl1273_fm_set_tx_power:                ; @wl1273_fm_set_tx_power
	.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_5
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	add	x21, x22, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x22, #8]
Lloh9:
	adrp	x9, _WL1273_POWER_LEV_SET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WL1273_POWER_LEV_SET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	w9, #122
	sub	x2, x9, x19
	mov	x0, x22
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	str	x19, [x20]
LBB0_4:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_5:
	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	Lloh9, Lloh10, Lloh11
	.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	_WL1273_POWER_LEV_SET,4,2       ; @WL1273_POWER_LEV_SET
	.no_dead_strip	_wl1273_fm_set_tx_power
.subsections_via_symbols
