	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwsim_fops_ps_write
_hwsim_fops_ps_write:                   ## @hwsim_fops_ps_write
	.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, %rbx
	movq	%rdi, %r14
	movq	_PS_DISABLED@GOTPCREL(%rip), %r15
	movq	_PS_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PS_MANUAL_POLL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rsi, (%r15)
	je	LBB0_5
## %bb.1:
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.2:
	movq	_PS_AUTO_POLL@GOTPCREL(%rip), %rdx
	cmpq	%rbx, (%rdx)
	je	LBB0_5
## %bb.3:
	cmpq	%rbx, %rcx
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_5:
	movq	(%r14), %r12
	cmpq	%rbx, %rcx
	jne	LBB0_8
## %bb.6:
	cmpq	%rax, %r12
	jne	LBB0_4
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_local_bh_disable
	movl	8(%r14), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_hwsim_send_ps_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	jmp	LBB0_16
LBB0_8:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	callq	_local_bh_disable
	movl	%r12d, %ecx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jne	LBB0_11
## %bb.9:
	cmpq	%rbx, %rax
	je	LBB0_11
## %bb.10:
	movq	_hwsim_send_nullfunc_ps@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	cmpq	%rax, %rcx
	je	LBB0_15
## %bb.12:
	cmpq	%rbx, %rax
	jne	LBB0_15
## %bb.13:
	movq	_hwsim_send_nullfunc_no_ps@GOTPCREL(%rip), %rax
LBB0_14:
	movl	8(%r14), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	xorl	%eax, %eax
	callq	_local_bh_enable
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_DISABLED,8,3                ## @PS_DISABLED
	.comm	_PS_ENABLED,8,3                 ## @PS_ENABLED
	.comm	_PS_AUTO_POLL,8,3               ## @PS_AUTO_POLL
	.comm	_PS_MANUAL_POLL,8,3             ## @PS_MANUAL_POLL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_hwsim_send_ps_poll,4,2         ## @hwsim_send_ps_poll
	.comm	_hwsim_send_nullfunc_ps,4,2     ## @hwsim_send_nullfunc_ps
	.comm	_hwsim_send_nullfunc_no_ps,4,2  ## @hwsim_send_nullfunc_no_ps
	.no_dead_strip	_hwsim_fops_ps_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwsim_fops_ps_write
_hwsim_fops_ps_write:                   ; @hwsim_fops_ps_write
	.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
Lloh0:
	adrp	x21, _PS_DISABLED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PS_DISABLED@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PS_ENABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PS_ENABLED@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PS_AUTO_POLL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PS_AUTO_POLL@GOTPAGEOFF]
Lloh7:
	adrp	x11, _PS_MANUAL_POLL@GOTPAGE
Lloh8:
	ldr	x11, [x11, _PS_MANUAL_POLL@GOTPAGEOFF]
Lloh9:
	ldr	x12, [x9]
Lloh10:
	ldr	x9, [x11]
	cmp	x10, x1
	ccmp	x8, x1, #4, ne
	ccmp	x12, x1, #4, ne
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	cmp	x9, x1
	b.ne	LBB0_5
; %bb.2:
	cmp	x22, x8
	b.ne	LBB0_4
; %bb.3:
	bl	_local_bh_disable
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _hwsim_send_ps_poll@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hwsim_send_ps_poll@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	str	x20, [x19]
	bl	_local_bh_disable
	and	x8, x22, #0xffffffff
	ldr	x9, [x21]
	cmp	x8, x9
	ccmp	x9, x20, #4, eq
	b.ne	LBB0_8
; %bb.6:
	cmp	x8, x9
	ccmp	x9, x20, #0, ne
	b.ne	LBB0_11
; %bb.7:
Lloh19:
	adrp	x8, _hwsim_send_nullfunc_no_ps@GOTPAGE
Lloh20:
	ldr	x8, [x8, _hwsim_send_nullfunc_no_ps@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _hwsim_send_nullfunc_ps@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hwsim_send_nullfunc_ps@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x19, #8]
Lloh23:
	adrp	x9, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
LBB0_10:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_ieee80211_iterate_active_interfaces_atomic
LBB0_11:
	bl	_local_bh_enable
	mov	w0, #0
LBB0_12:
	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	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_DISABLED,8,3                ; @PS_DISABLED
	.comm	_PS_ENABLED,8,3                 ; @PS_ENABLED
	.comm	_PS_AUTO_POLL,8,3               ; @PS_AUTO_POLL
	.comm	_PS_MANUAL_POLL,8,3             ; @PS_MANUAL_POLL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_hwsim_send_ps_poll,4,2         ; @hwsim_send_ps_poll
	.comm	_hwsim_send_nullfunc_ps,4,2     ; @hwsim_send_nullfunc_ps
	.comm	_hwsim_send_nullfunc_no_ps,4,2  ; @hwsim_send_nullfunc_no_ps
	.no_dead_strip	_hwsim_fops_ps_write
.subsections_via_symbols
