	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_add_beacon_time
_iwl_add_beacon_time:                   ## @iwl_add_beacon_time
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_IWLAGN_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iwl_beacon_time_mask_low
	movq	%rax, %r13
	andq	%r12, %r13
	movq	_IWLAGN_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_beacon_time_mask_low
	movq	%rax, %r12
	andq	%r14, %r12
	movq	_TIME_UNIT@GOTPCREL(%rip), %rax
	imulq	(%rax), %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_IWLAGN_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_beacon_time_mask_high
	movq	%rax, %r15
	andq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	movq	_IWLAGN_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_beacon_time_mask_high
	andq	%r14, %rax
	addq	%r15, %rax
	movq	%r13, %rdi
	subq	%r12, %rdi
	jle	LBB0_2
## %bb.1:
	addq	%rax, %rdi
	jmp	LBB0_5
LBB0_2:
	movq	_IWLAGN_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rcx
	subq	%r12, %r13
	jge	LBB0_4
## %bb.3:
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	addq	%rax, %r13
	addq	%rcx, %r13
	movq	%r13, %rdi
	jmp	LBB0_5
LBB0_4:
	addq	%rcx, %rax
	movq	%rax, %rdi
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_to_le32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWLAGN_EXT_BEACON_TIME_POS,4,2 ## @IWLAGN_EXT_BEACON_TIME_POS
	.comm	_TIME_UNIT,8,3                  ## @TIME_UNIT
	.no_dead_strip	_iwl_add_beacon_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_add_beacon_time
_iwl_add_beacon_time:                   ; @iwl_add_beacon_time
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _IWLAGN_EXT_BEACON_TIME_POS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IWLAGN_EXT_BEACON_TIME_POS@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_iwl_beacon_time_mask_low
	and	x23, x0, x21
	ldr	w1, [x24]
	mov	x0, x22
	bl	_iwl_beacon_time_mask_low
	and	x25, x0, x20
Lloh2:
	adrp	x8, _TIME_UNIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIME_UNIT@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x8]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_iwl_beacon_time_mask_high
	and	x21, x0, x21
	ldr	w1, [x24]
	mov	x0, x22
	bl	_iwl_beacon_time_mask_high
	and	x8, x0, x20
	add	x8, x8, x21
	subs	x9, x23, x25
	b.le	LBB0_2
; %bb.1:
	add	x0, x9, x8
	b	LBB0_3
LBB0_2:
	mul	x10, x26, x19
	ldr	w11, [x24]
	mov	w12, #1
	lsl	w11, w12, w11
	sxtw	x11, w11
	add	x12, x8, x11
	add	x9, x9, x10
	add	x8, x9, x8
	add	x8, x8, x11
	cmp	x23, x25
	csel	x0, x12, x8, ge
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_cpu_to_le32
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IWLAGN_EXT_BEACON_TIME_POS,4,2 ; @IWLAGN_EXT_BEACON_TIME_POS
	.comm	_TIME_UNIT,8,3                  ; @TIME_UNIT
	.no_dead_strip	_iwl_add_beacon_time
.subsections_via_symbols
