	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_get_delta
_mt76x0_get_delta:                      ## @mt76x0_get_delta
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_NL80211_CHAN_WIDTH_80@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MT_EE_5G_TARGET_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %edi
	sarl	$8, %edi
	jmp	LBB0_4
LBB0_2:
	movq	_NL80211_CHAN_WIDTH_40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_MT_EE_TX_POWER_DELTA_BW40@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76x02_eeprom_get
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	sarl	$8, %edi
	cmpq	(%rdx), %rcx
	cmovnel	%eax, %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mt76x02_rate_power_val         ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_WIDTH_80,8,3      ## @NL80211_CHAN_WIDTH_80
	.comm	_MT_EE_5G_TARGET_POWER,4,2      ## @MT_EE_5G_TARGET_POWER
	.comm	_NL80211_CHAN_WIDTH_40,8,3      ## @NL80211_CHAN_WIDTH_40
	.comm	_MT_EE_TX_POWER_DELTA_BW40,4,2  ## @MT_EE_TX_POWER_DELTA_BW40
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_mt76x0_get_delta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_get_delta
_mt76x0_get_delta:                      ; @mt76x0_get_delta
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_CHAN_WIDTH_80@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_80@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MT_EE_5G_TARGET_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_EE_5G_TARGET_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76x02_eeprom_get
	asr	w0, w0, #8
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _NL80211_CHAN_WIDTH_40@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_40@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _MT_EE_TX_POWER_DELTA_BW40@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_EE_TX_POWER_DELTA_BW40@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76x02_eeprom_get
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	asr	w10, w0, #8
	cmp	x8, x9
	csel	w0, w10, w0, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt76x02_rate_power_val
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_WIDTH_80,8,3      ; @NL80211_CHAN_WIDTH_80
	.comm	_MT_EE_5G_TARGET_POWER,4,2      ; @MT_EE_5G_TARGET_POWER
	.comm	_NL80211_CHAN_WIDTH_40,8,3      ; @NL80211_CHAN_WIDTH_40
	.comm	_MT_EE_TX_POWER_DELTA_BW40,4,2  ; @MT_EE_TX_POWER_DELTA_BW40
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_mt76x0_get_delta
.subsections_via_symbols
