	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ath10k_set_antenna
___ath10k_set_antenna:                  ## @__ath10k_set_antenna
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_lockdep_assert_held
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ath10k_check_chain_mask
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath10k_check_chain_mask
	movq	%r15, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	(%rbx), %rax
	movq	_ATH10K_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ATH10K_STATE_RESTARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_2:
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ath10k_wmi_pdev_set_param
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_ath10k_warn
	movl	%r13d, %r12d
	jmp	LBB0_7
LBB0_4:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ath10k_wmi_pdev_set_param
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_ath10k_warn
	movl	%r15d, %r12d
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_ath10k_mac_setup_ht_vht_cap
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"rx"

	.comm	_ATH10K_STATE_ON,8,3            ## @ATH10K_STATE_ON
	.comm	_ATH10K_STATE_RESTARTED,8,3     ## @ATH10K_STATE_RESTARTED
L_.str.2:                               ## @.str.2
	.asciz	"failed to set tx-chainmask: %d, req 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to set rx-chainmask: %d, req 0x%x\n"

	.no_dead_strip	___ath10k_set_antenna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ath10k_set_antenna
___ath10k_set_antenna:                  ; @__ath10k_set_antenna
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #32
	bl	_lockdep_assert_held
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_ath10k_check_chain_mask
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_check_chain_mask
	stp	x20, x21, [x19, #16]
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _ATH10K_STATE_ON@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ATH10K_STATE_ON@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _ATH10K_STATE_RESTARTED@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ATH10K_STATE_RESTARTED@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_wmi_pdev_set_param
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_ath10k_warn
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	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
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_wmi_pdev_set_param
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	bl	_ath10k_warn
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_ath10k_mac_setup_ht_vht_cap
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"rx"

	.comm	_ATH10K_STATE_ON,8,3            ; @ATH10K_STATE_ON
	.comm	_ATH10K_STATE_RESTARTED,8,3     ; @ATH10K_STATE_RESTARTED
l_.str.2:                               ; @.str.2
	.asciz	"failed to set tx-chainmask: %d, req 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to set rx-chainmask: %d, req 0x%x\n"

	.no_dead_strip	___ath10k_set_antenna
.subsections_via_symbols
