	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_acx_frag_threshold      ## -- Begin function wl1271_acx_frag_threshold
	.p2align	4, 0x90
_wl1271_acx_frag_threshold:             ## @wl1271_acx_frag_threshold
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IEEE80211_MAX_FRAG_THRESHOLD@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	(%r14), %rbx
LBB0_2:
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wl1271_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r15)
	movq	_ACX_FRAG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_wl1271_cmd_configure
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1271_warning
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_FRAG_THRESHOLD,8,3 ## @IEEE80211_MAX_FRAG_THRESHOLD
	.comm	_DEBUG_ACX,4,2                  ## @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acx frag threshold: %d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACX_FRAG_CFG,4,2               ## @ACX_FRAG_CFG
L_.str.1:                               ## @.str.1
	.asciz	"Setting of frag threshold failed: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_acx_frag_threshold      ; -- Begin function wl1271_acx_frag_threshold
	.p2align	2
_wl1271_acx_frag_threshold:             ; @wl1271_acx_frag_threshold
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IEEE80211_MAX_FRAG_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MAX_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
	ldr	x21, [x20]
LBB0_2:
Lloh3:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wl1271_debug
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_cpu_to_le16
	str	w0, [x19]
Lloh11:
	adrp	x8, _ACX_FRAG_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACX_FRAG_CFG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #4
	bl	_wl1271_cmd_configure
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wl1271_warning
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_FRAG_THRESHOLD,8,3 ; @IEEE80211_MAX_FRAG_THRESHOLD
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acx frag threshold: %d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACX_FRAG_CFG,4,2               ; @ACX_FRAG_CFG
l_.str.1:                               ; @.str.1
	.asciz	"Setting of frag threshold failed: %d"

.subsections_via_symbols
