	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_ampdu_set
_brcms_c_ampdu_set:                     ## @brcms_c_ampdu_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %r14
	movl	$0, (%rax)
	xorl	%r12d, %r12d
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movq	_SUPPORT_11N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_2
## %bb.4:
	movl	%esi, %r15d
	callq	_brcms_c_ampdu_cap
	movq	(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%r15d, (%rcx)
	jmp	LBB0_7
LBB0_2:
	movl	8(%rax), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movl	8(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_brcms_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORT_11N,4,2                ## @SUPPORT_11N
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: driver not nmode enabled\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"wl%d: device not ampdu capable\n"

	.no_dead_strip	_brcms_c_ampdu_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_ampdu_set
_brcms_c_ampdu_set:                     ; @brcms_c_ampdu_set
	.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
	ldr	x21, [x0]
	ldp	x8, x9, [x21]
	ldr	x19, [x9]
	str	wzr, [x8]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w9, [x8, #4]
Lloh0:
	adrp	x10, _SUPPORT_11N@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SUPPORT_11N@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x1
	bl	_brcms_c_ampdu_cap
	ldr	x8, [x21]
	cbz	w0, LBB0_6
; %bb.3:
	mov	w0, #0
	str	w20, [x8]
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w2, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w2, [x8, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_brcms_err
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORT_11N,4,2                ; @SUPPORT_11N
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: driver not nmode enabled\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"wl%d: device not ampdu capable\n"

	.no_dead_strip	_brcms_c_ampdu_set
.subsections_via_symbols
