	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_smps
_ieee80211_set_smps:                    ## @ieee80211_set_smps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	movq	_IEEE80211_HW_SUPPORTS_STATIC_SMPS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_IEEE80211_SMPS_STATIC@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_IEEE80211_SMPS_DYNAMIC@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_2
## %bb.6:
	movq	_IEEE80211_SMPS_AUTOMATIC@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_2
LBB0_7:
	movq	8(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___ieee80211_request_smps
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_SUPPORTS_STATIC_SMPS,4,2 ## @IEEE80211_HW_SUPPORTS_STATIC_SMPS
	.comm	_IEEE80211_SMPS_STATIC,4,2      ## @IEEE80211_SMPS_STATIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS,4,2 ## @IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS
	.comm	_IEEE80211_SMPS_DYNAMIC,4,2     ## @IEEE80211_SMPS_DYNAMIC
	.comm	_IEEE80211_SMPS_AUTOMATIC,4,2   ## @IEEE80211_SMPS_AUTOMATIC
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ieee80211_set_smps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_smps
_ieee80211_set_smps:                    ; @ieee80211_set_smps
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_HW_SUPPORTS_STATIC_SMPS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_SUPPORTS_STATIC_SMPS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _IEEE80211_SMPS_STATIC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_SMPS_STATIC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, #0
	ccmp	w10, w1, #0, eq
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x9, _IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _IEEE80211_SMPS_DYNAMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_SMPS_DYNAMIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IEEE80211_SMPS_AUTOMATIC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_SMPS_AUTOMATIC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	___ieee80211_request_smps
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_SUPPORTS_STATIC_SMPS,4,2 ; @IEEE80211_HW_SUPPORTS_STATIC_SMPS
	.comm	_IEEE80211_SMPS_STATIC,4,2      ; @IEEE80211_SMPS_STATIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS,4,2 ; @IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS
	.comm	_IEEE80211_SMPS_DYNAMIC,4,2     ; @IEEE80211_SMPS_DYNAMIC
	.comm	_IEEE80211_SMPS_AUTOMATIC,4,2   ; @IEEE80211_SMPS_AUTOMATIC
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ieee80211_set_smps
.subsections_via_symbols
