	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_txpkt_hdalign
_brcmf_sdio_txpkt_hdalign:              ## @brcmf_sdio_txpkt_hdalign
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	(%r14), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_skb_headroom
	cmpq	%rbx, %rax
	jge	LBB0_8
## %bb.6:
	movq	16(%r14), %rax
	movq	(%rax), %r12
	leaq	4(%r12), %rdi
	callq	_atomic_inc
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_cow_head
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_atomic_inc
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_push
	movq	(%r15), %rdi
	jmp	LBB0_9
LBB0_1:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_9:
	movq	8(%r14), %rdx
	addq	%rbx, %rdx
	xorl	%esi, %esi
	callq	_memset
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_brcmf_sdio_txpkt_hdalign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_txpkt_hdalign
_brcmf_sdio_txpkt_hdalign:              ; @brcmf_sdio_txpkt_hdalign
	.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, x0
	ldr	x0, [x1]
	ldr	x8, [x20]
	udiv	x9, x0, x8
	msub	x19, x9, x8, x0
	cbz	x19, LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x0, x1
	bl	_skb_headroom
	cmp	x0, x19
	b.ge	LBB0_5
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x22, [x8]
	add	x0, x22, #4
	bl	_atomic_inc
	mov	x0, x21
	mov	x1, x19
	bl	_skb_cow_head
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_atomic_inc
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_7
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_skb_push
	ldr	x0, [x21]
LBB0_6:
	ldr	x8, [x20, #8]
	add	x2, x8, x19
	mov	w1, #0
	bl	_memset
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_brcmf_sdio_txpkt_hdalign
.subsections_via_symbols
