	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_set_beacon_timers     ## -- Begin function carl9170_set_beacon_timers
	.p2align	4, 0x90
_carl9170_set_beacon_timers:            ## @carl9170_set_beacon_timers
	.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	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r15, %rdi
	callq	_carl9170_get_main_vif
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r12
	movq	16(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	movl	(%r12), %eax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movl	4(%r12), %eax
	movl	%eax, 4(%r15)
	movq	_AR9170_MAC_BCN_DTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SET_VAL
	movq	_AR9170_MAC_BCN_STA_PS@GOTPCREL(%rip), %rax
	movq	_AR9170_MAC_BCN_PWR_MGT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	jmp	LBB0_11
LBB0_16:
	movl	$0, 4(%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_3:
	movl	4(%r12), %eax
	cltd
	idivl	(%r15)
	movl	%eax, 4(%r15)
	movq	_AR9170_MAC_BCN_DTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %edx
	xorl	%esi, %esi
	callq	_SET_VAL
	movl	(%r12), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_8
LBB0_6:
	movq	_AR9170_MAC_BCN_IBSS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_7:
	movq	_AR9170_MAC_BCN_AP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_8:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	xorl	%r14d, %r14d
LBB0_11:
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.13:
	cmpl	$15, %ebx
	jge	LBB0_14
## %bb.15:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_14:
	movq	_CARL9170_PRETBTT_KUS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, 8(%r15)
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_AR9170_MAC_BCN_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	movl	%r14d, %esi
	callq	_SET_VAL
	movq	_AR9170_MAC_PRETBTT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	xorl	%esi, %esi
	callq	_SET_VAL
	movq	_AR9170_MAC_PRETBTT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	xorl	%esi, %esi
	callq	_SET_VAL
	movq	%r15, %rdi
	callq	_carl9170_regwrite_begin
	movq	_AR9170_MAC_REG_PRETBTT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_BCN_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_carl9170_regwrite
	xorl	%eax, %eax
	callq	_carl9170_regwrite_finish
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carl9170_regwrite_result       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9170_MAC_BCN_DTIM,4,2        ## @AR9170_MAC_BCN_DTIM
	.comm	_AR9170_MAC_BCN_IBSS_MODE,4,2   ## @AR9170_MAC_BCN_IBSS_MODE
	.comm	_AR9170_MAC_BCN_AP_MODE,4,2     ## @AR9170_MAC_BCN_AP_MODE
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_AR9170_MAC_BCN_STA_PS,4,2      ## @AR9170_MAC_BCN_STA_PS
	.comm	_AR9170_MAC_BCN_PWR_MGT,4,2     ## @AR9170_MAC_BCN_PWR_MGT
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_CARL9170_PRETBTT_KUS,4,2       ## @CARL9170_PRETBTT_KUS
	.comm	_AR9170_MAC_BCN_PERIOD,4,2      ## @AR9170_MAC_BCN_PERIOD
	.comm	_AR9170_MAC_PRETBTT,4,2         ## @AR9170_MAC_PRETBTT
	.comm	_AR9170_MAC_PRETBTT2,4,2        ## @AR9170_MAC_PRETBTT2
	.comm	_AR9170_MAC_REG_PRETBTT,4,2     ## @AR9170_MAC_REG_PRETBTT
	.comm	_AR9170_MAC_REG_BCN_PERIOD,4,2  ## @AR9170_MAC_REG_BCN_PERIOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_set_beacon_timers     ; -- Begin function carl9170_set_beacon_timers
	.p2align	2
_carl9170_set_beacon_timers:            ; @carl9170_set_beacon_timers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rcu_read_lock
	mov	x0, x19
	bl	_carl9170_get_main_vif
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	w0, LBB0_6
LBB0_3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.4:
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _AR9170_MAC_BCN_DTIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR9170_MAC_BCN_DTIM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SET_VAL
Lloh6:
	adrp	x8, _AR9170_MAC_BCN_STA_PS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR9170_MAC_BCN_STA_PS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AR9170_MAC_BCN_PWR_MGT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AR9170_MAC_BCN_PWR_MGT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_14
	b	LBB0_17
LBB0_5:
	mov	w8, #0
	str	wzr, [x19, #4]
	b	LBB0_17
LBB0_6:
	ldr	w8, [x19]
	ldp	w9, w2, [x20, #4]
	sdiv	w8, w9, w8
	str	w8, [x19, #4]
Lloh12:
	adrp	x8, _AR9170_MAC_BCN_DTIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR9170_MAC_BCN_DTIM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_SET_VAL
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_12
LBB0_9:
Lloh15:
	adrp	x8, _AR9170_MAC_BCN_IBSS_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR9170_MAC_BCN_IBSS_MODE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _AR9170_MAC_BCN_AP_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR9170_MAC_BCN_AP_MODE@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_14
	b	LBB0_17
LBB0_12:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_13:
	mov	w20, #0
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_17
LBB0_14:
	cmp	w8, #15
	b.ge	LBB0_16
; %bb.15:
	bl	_rcu_read_unlock
Lloh19:
	adrp	x8, _ERANGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh22:
	adrp	x9, _CARL9170_PRETBTT_KUS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CARL9170_PRETBTT_KUS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	sub	w8, w8, w9
LBB0_17:
	str	w8, [x19, #8]
	bl	_rcu_read_unlock
Lloh25:
	adrp	x8, _AR9170_MAC_BCN_PERIOD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AR9170_MAC_BCN_PERIOD@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w2, [x19, #4]
	mov	x1, x20
	bl	_SET_VAL
Lloh28:
	adrp	x8, _AR9170_MAC_PRETBTT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AR9170_MAC_PRETBTT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	mov	w1, #0
	bl	_SET_VAL
Lloh31:
	adrp	x8, _AR9170_MAC_PRETBTT2@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AR9170_MAC_PRETBTT2@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	mov	w1, #0
	bl	_SET_VAL
	mov	x0, x19
	bl	_carl9170_regwrite_begin
Lloh34:
	adrp	x8, _AR9170_MAC_REG_PRETBTT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR9170_MAC_REG_PRETBTT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_carl9170_regwrite
Lloh37:
	adrp	x8, _AR9170_MAC_REG_BCN_PERIOD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AR9170_MAC_REG_BCN_PERIOD@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_carl9170_regwrite
	bl	_carl9170_regwrite_finish
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_carl9170_regwrite_result
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9170_MAC_BCN_DTIM,4,2        ; @AR9170_MAC_BCN_DTIM
	.comm	_AR9170_MAC_BCN_IBSS_MODE,4,2   ; @AR9170_MAC_BCN_IBSS_MODE
	.comm	_AR9170_MAC_BCN_AP_MODE,4,2     ; @AR9170_MAC_BCN_AP_MODE
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_AR9170_MAC_BCN_STA_PS,4,2      ; @AR9170_MAC_BCN_STA_PS
	.comm	_AR9170_MAC_BCN_PWR_MGT,4,2     ; @AR9170_MAC_BCN_PWR_MGT
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_CARL9170_PRETBTT_KUS,4,2       ; @CARL9170_PRETBTT_KUS
	.comm	_AR9170_MAC_BCN_PERIOD,4,2      ; @AR9170_MAC_BCN_PERIOD
	.comm	_AR9170_MAC_PRETBTT,4,2         ; @AR9170_MAC_PRETBTT
	.comm	_AR9170_MAC_PRETBTT2,4,2        ; @AR9170_MAC_PRETBTT2
	.comm	_AR9170_MAC_REG_PRETBTT,4,2     ; @AR9170_MAC_REG_PRETBTT
	.comm	_AR9170_MAC_REG_BCN_PERIOD,4,2  ; @AR9170_MAC_REG_BCN_PERIOD
.subsections_via_symbols
