	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_phy_set_chan_bbp_params
_mt76x0_phy_set_chan_bbp_params:        ## @mt76x0_phy_set_chan_bbp_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_mt76x0_bbp_switch_tab@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	$16, %r14d
	xorl	%r15d, %r15d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r13,%r14), %rsi
	movl	(%r13,%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_mt76_wr
	movq	_mt76x0_bbp_switch_tab@GOTPCREL(%rip), %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r14
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	movl	-16(%r13,%r14), %eax
	notl	%eax
	testl	%eax, %r12d
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r13,%r14), %rbx
	movq	_AGC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_MT_BBP
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13,%r14), %r12d
	movq	_MT_BBP_AGC_GAIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	movl	(%rbx), %edi
	movl	%edi, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	-8(%r13,%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	jmp	LBB0_6
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt76x0_bbp_switch_tab,8,3      ## @mt76x0_bbp_switch_tab
	.comm	_AGC,4,2                        ## @AGC
	.comm	_MT_BBP_AGC_GAIN,4,2            ## @MT_BBP_AGC_GAIN
	.no_dead_strip	_mt76x0_phy_set_chan_bbp_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_phy_set_chan_bbp_params
_mt76x0_phy_set_chan_bbp_params:        ; @mt76x0_phy_set_chan_bbp_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _mt76x0_bbp_switch_tab@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mt76x0_bbp_switch_tab@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _AGC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AGC@GOTPAGEOFF]
Lloh4:
	adrp	x26, _MT_BBP_AGC_GAIN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MT_BBP_AGC_GAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x27, #8]
	ldr	w2, [x27, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mt76_wr
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #24
	cmp	x24, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w9, [x8, x23]
	bics	wzr, w19, w9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x8, x23
	ldr	x21, [x27, #8]
	ldr	w0, [x25]
	mov	w1, #8
	bl	_MT_BBP
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [x27, #16]
	ldr	w0, [x26]
	mov	x1, x21
	bl	_FIELD_GET
	ldr	w8, [x20]
	sub	w1, w0, w8, lsl #1
	ldr	w0, [x26]
	bic	w21, w21, w0
	bl	_FIELD_PREP
	orr	w2, w21, w0
	ldr	x1, [x27, #8]
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mt76x0_bbp_switch_tab,8,3      ; @mt76x0_bbp_switch_tab
	.comm	_AGC,4,2                        ; @AGC
	.comm	_MT_BBP_AGC_GAIN,4,2            ; @MT_BBP_AGC_GAIN
	.no_dead_strip	_mt76x0_phy_set_chan_bbp_params
.subsections_via_symbols
