	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbo_add_ie                     ## -- Begin function mbo_add_ie
	.p2align	4, 0x90
_mbo_add_ie:                            ## @mbo_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	leaq	6(%rcx), %r12
	cmpq	%rsi, %r12
	jbe	LBB0_2
## %bb.1:
	movq	%rsi, %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_wpa_printf
	xorl	%r12d, %r12d
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	leal	4(%r14), %eax
	addq	$8, %rdi
	movl	%eax, 4(%rbx)
	movq	_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WPA_PUT_BE24
	movq	_MBO_OUI_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	addq	$24, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
LBB0_3:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MBO: Not enough room in buffer for MBO IE: buf len = %zu, attr_len = %zu"

	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ## @OUI_WFA
	.comm	_MBO_OUI_TYPE,4,2               ## @MBO_OUI_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbo_add_ie                     ; -- Begin function mbo_add_ie
	.p2align	2
_mbo_add_ie:                            ; @mbo_add_ie
	.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
	mov	x19, x3
	add	x20, x3, #6
	cmp	x20, x1
	b.ls	LBB0_2
; %bb.1:
	mov	x2, x1
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_wpa_printf
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	mov	x21, x2
	mov	x22, x0
Lloh5:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w9, w19, #4
	add	x0, x0, #8
	stp	w8, w9, [x22]
Lloh8:
	adrp	x8, _OUI_WFA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OUI_WFA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_WPA_PUT_BE24
Lloh11:
	adrp	x8, _MBO_OUI_TYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBO_OUI_TYPE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	x0, x22, #24
	str	w8, [x22, #20]
	mov	x1, x21
	mov	x2, x19
	bl	_os_memcpy
LBB0_3:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MBO: Not enough room in buffer for MBO IE: buf len = %zu, attr_len = %zu"

	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ; @OUI_WFA
	.comm	_MBO_OUI_TYPE,4,2               ; @MBO_OUI_TYPE
.subsections_via_symbols
