	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_mbo_ie                    ## -- Begin function wpas_mbo_ie
	.p2align	4, 0x90
_wpas_mbo_ie:                           ## @wpas_mbo_ie
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	_MBO_IE_HEADER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_OCE_STA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%rdi)
	setne	%dl
	leal	(%rdx,%rdx,2), %ecx
	addq	%rax, %rcx
	addq	$10, %rcx
	xorl	%r14d, %r14d
	cmpq	%r15, %rcx
	ja	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	subq	%rax, %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_wpas_mbo_non_pref_chan_attrs
	movq	_MBO_ATTR_ID_CELL_DATA_CAPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_u8
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wpabuf_put_u8
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_u8
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.3:
	movq	_OCE_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_5
## %bb.4:
	movq	_OCE_ATTR_ID_CAPA_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_u8
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wpabuf_put_u8
	movq	_OCE_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_u8
LBB0_5:
	movq	%r12, %rdi
	callq	_wpabuf_head_u8
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_wpabuf_len
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_mbo_add_ie
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_7:
	movq	%r12, %rdi
	callq	_wpabuf_free
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBO_IE_HEADER,4,2              ## @MBO_IE_HEADER
	.comm	_OCE_STA,4,2                    ## @OCE_STA
	.comm	_MBO_ATTR_ID_CELL_DATA_CAPA,4,2 ## @MBO_ATTR_ID_CELL_DATA_CAPA
	.comm	_OCE_ATTR_ID_CAPA_IND,4,2       ## @OCE_ATTR_ID_CAPA_IND
	.comm	_OCE_RELEASE,4,2                ## @OCE_RELEASE
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add MBO/OCE IE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_mbo_ie                    ; -- Begin function wpas_mbo_ie
	.p2align	2
_wpas_mbo_ie:                           ; @wpas_mbo_ie
	.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	w24, #0
	ldr	w8, [x0]
Lloh0:
	adrp	x25, _OCE_STA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OCE_STA@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
Lloh2:
	adrp	x8, _MBO_IE_HEADER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBO_IE_HEADER@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	mov	w9, #3
	csel	w9, wzr, w9, eq
	add	x9, x8, x9
	add	x9, x9, #10
	cmp	x9, x2
	b.hi	LBB0_9
; %bb.1:
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	sub	x0, x2, x8
	bl	_wpabuf_alloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_wpas_mbo_non_pref_chan_attrs
Lloh5:
	adrp	x8, _MBO_ATTR_ID_CELL_DATA_CAPA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBO_ATTR_ID_CELL_DATA_CAPA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	mov	x0, x21
	mov	w1, #1
	bl	_wpabuf_put_u8
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	cbz	w23, LBB0_5
; %bb.3:
	ldr	w8, [x22]
	ldr	w9, [x25]
	and	w8, w9, w8
	cbz	w8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _OCE_ATTR_ID_CAPA_IND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OCE_ATTR_ID_CAPA_IND@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	mov	x0, x21
	mov	w1, #1
	bl	_wpabuf_put_u8
Lloh11:
	adrp	x8, _OCE_RELEASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OCE_RELEASE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
LBB0_5:
	mov	x0, x21
	bl	_wpabuf_head_u8
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_mbo_add_ie
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_9
LBB0_8:
	mov	w24, #0
LBB0_9:
	mov	x0, x24
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MBO_IE_HEADER,4,2              ; @MBO_IE_HEADER
	.comm	_OCE_STA,4,2                    ; @OCE_STA
	.comm	_MBO_ATTR_ID_CELL_DATA_CAPA,4,2 ; @MBO_ATTR_ID_CELL_DATA_CAPA
	.comm	_OCE_ATTR_ID_CAPA_IND,4,2       ; @OCE_ATTR_ID_CAPA_IND
	.comm	_OCE_RELEASE,4,2                ; @OCE_RELEASE
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add MBO/OCE IE"

.subsections_via_symbols
