	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_fill_txpower_mode
_iwlagn_fill_txpower_mode:              ## @iwlagn_fill_txpower_mode
	.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, %rbx
	movq	8(%rdi), %rax
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	(%rdi), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movq	%rsi, %r14
	callq	_ieee80211_ave_rssi
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movl	%eax, %r15d
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.4:
	movq	_IWL_RXON_CTX_PAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_is_associated
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_BT_ENABLE_REDUCED_TXPOWER_THRESHOLD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_8
## %bb.6:
	movl	(%r14), %eax
	movq	_BT_UART_MSG_FRAME3ACL_MSK@GOTPCREL(%rip), %rcx
	movq	_BT_UART_MSG_FRAME3OBEX_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_8
## %bb.7:
	movq	_BT_UART_MSG_FRAME3SCOESCO_MSK@GOTPCREL(%rip), %rcx
	movq	_BT_UART_MSG_FRAME3SNIFF_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_BT_UART_MSG_FRAME3A2DP_MSK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_20
LBB0_8:
	cmpl	$0, (%rbx)
	je	LBB0_15
LBB0_9:
	movq	_IWL_RXON_CTX_PAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_is_associated
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_BT_DISABLE_REDUCED_TXPOWER_THRESHOLD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_12
## %bb.11:
	movl	(%r14), %ecx
	movq	_BT_UART_MSG_FRAME3SCOESCO_MSK@GOTPCREL(%rip), %rax
	movq	_BT_UART_MSG_FRAME3SNIFF_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_BT_UART_MSG_FRAME3A2DP_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_18
LBB0_12:
	movl	$0, (%rbx)
LBB0_13:
	movq	_IWLAGN_BT_VALID_REDUCED_TX_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movl	$1, %eax
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_INFO
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_COEX
	jmp	LBB0_15
LBB0_18:
	movq	_BT_UART_MSG_FRAME3ACL_MSK@GOTPCREL(%rip), %rax
	movq	_BT_UART_MSG_FRAME3OBEX_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	xorl	%eax, %eax
	testl	%ecx, %edx
	jne	LBB0_16
	jmp	LBB0_12
LBB0_20:
	movl	$1, (%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BSS ctx not active or not in sta mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"no rssi data available\n"

	.comm	_IWL_RXON_CTX_PAN,4,2           ## @IWL_RXON_CTX_PAN
	.comm	_BT_ENABLE_REDUCED_TXPOWER_THRESHOLD,4,2 ## @BT_ENABLE_REDUCED_TXPOWER_THRESHOLD
	.comm	_BT_UART_MSG_FRAME3ACL_MSK,4,2  ## @BT_UART_MSG_FRAME3ACL_MSK
	.comm	_BT_UART_MSG_FRAME3OBEX_MSK,4,2 ## @BT_UART_MSG_FRAME3OBEX_MSK
	.comm	_BT_UART_MSG_FRAME3SCOESCO_MSK,4,2 ## @BT_UART_MSG_FRAME3SCOESCO_MSK
	.comm	_BT_UART_MSG_FRAME3SNIFF_MSK,4,2 ## @BT_UART_MSG_FRAME3SNIFF_MSK
	.comm	_BT_UART_MSG_FRAME3A2DP_MSK,4,2 ## @BT_UART_MSG_FRAME3A2DP_MSK
	.comm	_IWLAGN_BT_VALID_REDUCED_TX_PWR,4,2 ## @IWLAGN_BT_VALID_REDUCED_TX_PWR
	.comm	_BT_DISABLE_REDUCED_TXPOWER_THRESHOLD,4,2 ## @BT_DISABLE_REDUCED_TXPOWER_THRESHOLD
	.no_dead_strip	_iwlagn_fill_txpower_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_fill_txpower_mode
_iwlagn_fill_txpower_mode:              ; @iwlagn_fill_txpower_mode
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	mov	x20, x1
	bl	_ieee80211_ave_rssi
	cbz	w0, LBB0_14
; %bb.3:
	mov	x21, x0
	ldr	w8, [x19]
Lloh6:
	adrp	x22, _IWL_RXON_CTX_PAN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IWL_RXON_CTX_PAN@GOTPAGEOFF]
	cbnz	w8, LBB0_8
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_iwl_is_associated
Lloh8:
	adrp	x8, _BT_ENABLE_REDUCED_TXPOWER_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BT_ENABLE_REDUCED_TXPOWER_THRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w21, w8, #4, eq
	b.le	LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _BT_UART_MSG_FRAME3ACL_MSK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BT_UART_MSG_FRAME3ACL_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _BT_UART_MSG_FRAME3OBEX_MSK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BT_UART_MSG_FRAME3OBEX_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x9, _BT_UART_MSG_FRAME3SCOESCO_MSK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BT_UART_MSG_FRAME3SCOESCO_MSK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _BT_UART_MSG_FRAME3SNIFF_MSK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _BT_UART_MSG_FRAME3SNIFF_MSK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh23:
	adrp	x10, _BT_UART_MSG_FRAME3A2DP_MSK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _BT_UART_MSG_FRAME3A2DP_MSK@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_16
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_iwl_is_associated
Lloh26:
	adrp	x8, _BT_DISABLE_REDUCED_TXPOWER_THRESHOLD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BT_DISABLE_REDUCED_TXPOWER_THRESHOLD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w21, w8, #8, eq
	b.lt	LBB0_10
; %bb.9:
	ldr	w8, [x20]
Lloh29:
	adrp	x9, _BT_UART_MSG_FRAME3SCOESCO_MSK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BT_UART_MSG_FRAME3SCOESCO_MSK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _BT_UART_MSG_FRAME3SNIFF_MSK@GOTPAGE
Lloh33:
	ldr	x10, [x10, _BT_UART_MSG_FRAME3SNIFF_MSK@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh35:
	adrp	x10, _BT_UART_MSG_FRAME3A2DP_MSK@GOTPAGE
Lloh36:
	ldr	x10, [x10, _BT_UART_MSG_FRAME3A2DP_MSK@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_15
LBB0_10:
Lloh38:
	adrp	x8, _IWLAGN_BT_VALID_REDUCED_TX_PWR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IWLAGN_BT_VALID_REDUCED_TX_PWR@GOTPAGEOFF]
	str	wzr, [x19]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	w0, #1
	b	LBB0_13
LBB0_11:
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
LBB0_14:
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_COEX
	b	LBB0_12
LBB0_15:
Lloh45:
	adrp	x9, _BT_UART_MSG_FRAME3ACL_MSK@GOTPAGE
Lloh46:
	ldr	x9, [x9, _BT_UART_MSG_FRAME3ACL_MSK@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
Lloh48:
	adrp	x10, _BT_UART_MSG_FRAME3OBEX_MSK@GOTPAGE
Lloh49:
	ldr	x10, [x10, _BT_UART_MSG_FRAME3OBEX_MSK@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_12
	b	LBB0_10
LBB0_16:
	mov	w0, #1
	str	w0, [x19]
Lloh51:
	adrp	x8, _IWLAGN_BT_VALID_REDUCED_TX_PWR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IWLAGN_BT_VALID_REDUCED_TX_PWR@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BSS ctx not active or not in sta mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"no rssi data available\n"

	.comm	_IWL_RXON_CTX_PAN,4,2           ; @IWL_RXON_CTX_PAN
	.comm	_BT_ENABLE_REDUCED_TXPOWER_THRESHOLD,4,2 ; @BT_ENABLE_REDUCED_TXPOWER_THRESHOLD
	.comm	_BT_UART_MSG_FRAME3ACL_MSK,4,2  ; @BT_UART_MSG_FRAME3ACL_MSK
	.comm	_BT_UART_MSG_FRAME3OBEX_MSK,4,2 ; @BT_UART_MSG_FRAME3OBEX_MSK
	.comm	_BT_UART_MSG_FRAME3SCOESCO_MSK,4,2 ; @BT_UART_MSG_FRAME3SCOESCO_MSK
	.comm	_BT_UART_MSG_FRAME3SNIFF_MSK,4,2 ; @BT_UART_MSG_FRAME3SNIFF_MSK
	.comm	_BT_UART_MSG_FRAME3A2DP_MSK,4,2 ; @BT_UART_MSG_FRAME3A2DP_MSK
	.comm	_IWLAGN_BT_VALID_REDUCED_TX_PWR,4,2 ; @IWLAGN_BT_VALID_REDUCED_TX_PWR
	.comm	_BT_DISABLE_REDUCED_TXPOWER_THRESHOLD,4,2 ; @BT_DISABLE_REDUCED_TXPOWER_THRESHOLD
	.no_dead_strip	_iwlagn_fill_txpower_mode
.subsections_via_symbols
