	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_eeprom_enh_txp_read_element
_iwl_eeprom_enh_txp_read_element:       ## @iwl_eeprom_enh_txp_read_element
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r8d
	movq	_IWL_EEPROM_ENH_TXP_FL_BAND_52G@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	testl	%edx, %edx
	jg	LBB0_4
	jmp	LBB0_12
LBB0_1:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	testl	%edx, %edx
	jle	LBB0_12
LBB0_4:
	movl	(%rax), %r9d
	movq	(%rdi), %rdi
	movq	8(%rsi), %rsi
	movq	_IWL_EEPROM_ENH_TXP_FL_40MHZ@GOTPCREL(%rip), %r10
	movl	%edx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rdx
	xorl	%eax, %eax
	andl	(%r10), %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %rax
	cmpq	%rax, %rdx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rsi, (%rdi,%rax)
	jne	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	8(%rdi,%rax), %r9d
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rcx, 16(%rdi,%rax)
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r8d, %r8d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, 16(%rdi,%rax)
	jmp	LBB0_11
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_EEPROM_ENH_TXP_FL_BAND_52G,4,2 ## @IWL_EEPROM_ENH_TXP_FL_BAND_52G
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_IWL_EEPROM_ENH_TXP_FL_40MHZ,4,2 ## @IWL_EEPROM_ENH_TXP_FL_40MHZ
	.no_dead_strip	_iwl_eeprom_enh_txp_read_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_eeprom_enh_txp_read_element
_iwl_eeprom_enh_txp_read_element:       ; @iwl_eeprom_enh_txp_read_element
	.cfi_startproc
; %bb.0:
	ldr	w10, [x1]
Lloh0:
	adrp	x8, _IWL_EEPROM_ENH_TXP_FL_BAND_52G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_EEPROM_ENH_TXP_FL_BAND_52G@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x11, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x11, [x11, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	tst	w8, w10
	csel	x8, x11, x9, eq
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	w8, [x8]
	ldr	x12, [x0]
	ldr	x9, [x1, #8]
Lloh7:
	adrp	x11, _IWL_EEPROM_ENH_TXP_FL_40MHZ@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IWL_EEPROM_ENH_TXP_FL_40MHZ@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	and	w10, w11, w10
	mov	w11, w2
	add	x12, x12, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, #24
	subs	x11, x11, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x13, [x12, #-16]
	cmp	x13, x9
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	w13, [x12, #-8]
	cmp	w8, w13
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x12]
	cmp	x13, x3
	ccmp	w10, #0, #0, lt
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x3, [x12]
	b	LBB0_2
LBB0_8:
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_EEPROM_ENH_TXP_FL_BAND_52G,4,2 ; @IWL_EEPROM_ENH_TXP_FL_BAND_52G
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_IWL_EEPROM_ENH_TXP_FL_40MHZ,4,2 ; @IWL_EEPROM_ENH_TXP_FL_40MHZ
	.no_dead_strip	_iwl_eeprom_enh_txp_read_element
.subsections_via_symbols
