	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_supp_op_class_ie          ## -- Begin function wpas_supp_op_class_ie
	.p2align	4, 0x90
_wpas_supp_op_class_ie:                 ## @wpas_supp_op_class_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movl	%edx, %eax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_CHANWIDTH_USE_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r14d, %r14d
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %r8
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ieee80211_freq_to_channel_ext
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.1:
	movq	_global_op_class_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$3, %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_WLAN_EID_SUPPORTED_OPERATING_CLASSES@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wpabuf_put
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rsi
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	_global_op_class@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_8
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	leaq	(%rax,%r12,8), %rdx
	addq	$8, %rdx
	incq	%r12
	cmpq	$0, 8(%rax,%r15)
	leaq	8(%r15), %r15
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpas_op_class_supported
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r15), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_wpabuf_len
	addq	$-2, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	cmpq	$2, %rax
	jb	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_wpabuf_len
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jbe	LBB0_11
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_os_memcpy
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%rax, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_buf
LBB0_12:
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_13:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANWIDTH_USE_HT,4,2           ## @CHANWIDTH_USE_HT
	.comm	_NUM_HOSTAPD_MODES,8,3          ## @NUM_HOSTAPD_MODES
	.comm	_global_op_class_size,8,3       ## @global_op_class_size
	.comm	_WLAN_EID_SUPPORTED_OPERATING_CLASSES,8,3 ## @WLAN_EID_SUPPORTED_OPERATING_CLASSES
	.comm	_global_op_class,8,3            ## @global_op_class
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add supported operating classes IE"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Added supported operating classes IE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_supp_op_class_ie          ; -- Begin function wpas_supp_op_class_ie
	.p2align	2
_wpas_supp_op_class_ie:                 ; @wpas_supp_op_class_ie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x3
	mov	x8, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x9, _CHANWIDTH_USE_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHANWIDTH_USE_HT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x8
	mov	w1, #0
	bl	_ieee80211_freq_to_channel_ext
Lloh3:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _global_op_class_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _global_op_class_size@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, #3
	bl	_wpabuf_alloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh9:
	adrp	x8, _WLAN_EID_SUPPORTED_OPERATING_CLASSES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_SUPPORTED_OPERATING_CLASSES@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	bl	_wpabuf_put_u8
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put
	mov	x24, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_wpabuf_put_u8
Lloh12:
	adrp	x25, _global_op_class@GOTPAGE
Lloh13:
	ldr	x25, [x25, _global_op_class@GOTPAGEOFF]
	ldr	x2, [x25]
	ldr	x8, [x2]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x26, #0
	mov	x27, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldr	x8, [x25]
	add	x2, x8, x27, lsl #3
	add	x8, x8, x26
	ldr	x8, [x8, #8]
	add	x26, x26, #8
	cbz	x8, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_wpas_op_class_supported
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	ldr	x1, [x8, x26]
	mov	x0, x19
	bl	_wpabuf_put_u8
	b	LBB0_4
LBB0_7:
	mov	x20, #0
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_wpabuf_len
	sub	x8, x0, #2
	str	x8, [x24]
	cmp	x8, #2
	b.lo	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_wpabuf_len
	cmp	x0, x21
	b.ls	LBB0_11
LBB0_10:
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
	mov	x20, #0
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_wpabuf_head
	mov	x21, x0
	mov	x0, x19
	bl	_wpabuf_len
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_os_memcpy
	mov	x0, x19
	bl	_wpabuf_len
	mov	x20, x0
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf
LBB0_12:
	mov	x0, x19
	bl	_wpabuf_free
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANWIDTH_USE_HT,4,2           ; @CHANWIDTH_USE_HT
	.comm	_NUM_HOSTAPD_MODES,8,3          ; @NUM_HOSTAPD_MODES
	.comm	_global_op_class_size,8,3       ; @global_op_class_size
	.comm	_WLAN_EID_SUPPORTED_OPERATING_CLASSES,8,3 ; @WLAN_EID_SUPPORTED_OPERATING_CLASSES
	.comm	_global_op_class,8,3            ; @global_op_class
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add supported operating classes IE"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Added supported operating classes IE"

.subsections_via_symbols
