	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_buf_alloc               ## -- Begin function ath6kl_buf_alloc
	.p2align	4, 0x90
_ath6kl_buf_alloc:                      ## @ath6kl_buf_alloc
	.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
	movl	%edi, %ebx
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	addq	%rax, %rax
	movq	_ATH6KL_DATA_OFFSET@GOTPCREL(%rip), %rcx
	movq	_ATH6KL_HTC_ALIGN_BYTES@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rax
	leaq	(%rdx,%rax), %rdi
	addq	$4, %rdi
	movl	$4, %esi
	callq	_roundup
	movq	%rax, %r14
	movslq	%ebx, %rdi
	addq	%rax, %rdi
	callq	_dev_alloc_skb
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	(%r15), %rax
	subq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skb_reserve
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.comm	_ATH6KL_DATA_OFFSET,8,3         ## @ATH6KL_DATA_OFFSET
	.comm	_ATH6KL_HTC_ALIGN_BYTES,8,3     ## @ATH6KL_HTC_ALIGN_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_buf_alloc               ; -- Begin function ath6kl_buf_alloc
	.p2align	2
_ath6kl_buf_alloc:                      ; @ath6kl_buf_alloc
	.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
Lloh0:
	adrp	x21, _L1_CACHE_BYTES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _L1_CACHE_BYTES@GOTPAGEOFF]
	ldrsw	x8, [x21]
Lloh2:
	adrp	x9, _ATH6KL_DATA_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATH6KL_DATA_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _ATH6KL_HTC_ALIGN_BYTES@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ATH6KL_HTC_ALIGN_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x8, x9, x8, lsl #1
	add	x8, x8, x10
	add	x0, x8, #4
	mov	w1, #4
	bl	_roundup
	mov	x20, x0
	add	x0, x0, w19, sxtw
	bl	_dev_alloc_skb
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldrsw	x8, [x21]
	sub	x1, x20, x8
	mov	x0, x19
	bl	_skb_reserve
LBB0_2:
	mov	x0, x19
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.comm	_ATH6KL_DATA_OFFSET,8,3         ; @ATH6KL_DATA_OFFSET
	.comm	_ATH6KL_HTC_ALIGN_BYTES,8,3     ; @ATH6KL_HTC_ALIGN_BYTES
.subsections_via_symbols
