	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_calc_packet_alignment   ## -- Begin function wlcore_calc_packet_alignment
	.p2align	4, 0x90
_wlcore_calc_packet_alignment:          ## @wlcore_calc_packet_alignment
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movl	(%rdi), %edi
	movq	_WLCORE_QUIRK_TX_PAD_LAST_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	movq	_WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN@GOTPCREL(%rip), %r8
	movq	_WL1271_TX_ALIGN_TO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	andl	(%r8), %edi
	je	LBB0_2
## %bb.1:
	movq	_WL12XX_BUS_BLOCK_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	testl	%ecx, %ecx
	cmovel	%edx, %esi
	movl	%eax, %edi
	popq	%rbp
	jmp	_ALIGN                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_QUIRK_TX_PAD_LAST_FRAME,4,2 ## @WLCORE_QUIRK_TX_PAD_LAST_FRAME
	.comm	_WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN,4,2 ## @WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN
	.comm	_WL1271_TX_ALIGN_TO,4,2         ## @WL1271_TX_ALIGN_TO
	.comm	_WL12XX_BUS_BLOCK_SIZE,4,2      ## @WL12XX_BUS_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_calc_packet_alignment   ; -- Begin function wlcore_calc_packet_alignment
	.p2align	2
_wlcore_calc_packet_alignment:          ; @wlcore_calc_packet_alignment
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _WLCORE_QUIRK_TX_PAD_LAST_FRAME@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WLCORE_QUIRK_TX_PAD_LAST_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _WL1271_TX_ALIGN_TO@GOTPAGE
Lloh7:
	ldr	x12, [x12, _WL1271_TX_ALIGN_TO@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
Lloh9:
	adrp	x13, _WL12XX_BUS_BLOCK_SIZE@GOTPAGE
Lloh10:
	ldr	x13, [x13, _WL12XX_BUS_BLOCK_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	tst	w11, w9
	csel	w11, w12, w13, eq
	tst	w10, w9
	csel	w1, w11, w12, eq
	mov	x0, x8
	b	_ALIGN
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_QUIRK_TX_PAD_LAST_FRAME,4,2 ; @WLCORE_QUIRK_TX_PAD_LAST_FRAME
	.comm	_WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN,4,2 ; @WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN
	.comm	_WL1271_TX_ALIGN_TO,4,2         ; @WL1271_TX_ALIGN_TO
	.comm	_WL12XX_BUS_BLOCK_SIZE,4,2      ; @WL12XX_BUS_BLOCK_SIZE
.subsections_via_symbols
