	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_get_op_chan_phy
_wpas_get_op_chan_phy:                  ## @wpas_get_op_chan_phy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_get_ie
	xorl	%r14d, %r14d
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	cmpl	$4, 4(%rax)
	jb	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	addq	$8, %rbx
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rax), %ecx
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPCREL(%rip), %rax
	movl	$1, %r13d
	cmpl	(%rax), %ecx
	je	LBB0_5
## %bb.4:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	(%rax), %ecx
	sete	%r13b
	negl	%r13d
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_5:
	movq	_WLAN_EID_VHT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_get_ie
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	cmpl	$12, 4(%rax)
	jb	LBB0_9
## %bb.10:
	movq	%rax, %r15
	addq	$8, %r15
	movl	8(%rax), %ecx
	cmpl	$3, %ecx
	je	LBB0_20
## %bb.11:
	cmpl	$2, %ecx
	je	LBB0_19
## %bb.12:
	cmpl	$1, %ecx
	jne	LBB0_21
## %bb.13:
	movl	16(%rax), %ecx
	movq	%rbx, %r12
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.14:
	subl	12(%rax), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	cmpl	$8, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_17
## %bb.15:
	movq	_CHANWIDTH_160MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	%rbx, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_9:
	movq	%rbx, %r12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_20:
	movq	%rbx, %r12
	movq	_CHANWIDTH_80P80MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	%rbx, %r12
	movq	_CHANWIDTH_160MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	%rbx, %r12
	movq	_CHANWIDTH_USE_HT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_18:
	movq	_CHANWIDTH_80MHZ@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %r14d
LBB0_23:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_24:
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_ieee80211_freq_to_channel_ext
	movq	_NUM_HOSTAPD_MODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_28
LBB0_26:
	xorl	%esi, %esi
	testq	%r12, %r12
	setne	%sil
	xorl	%edx, %edx
	testq	%r15, %r15
	setne	%dl
	movl	%ebx, %edi
	callq	_ieee80211_get_phy_type
	movl	%eax, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	_PHY_TYPE_UNSPECIFIED@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_29
## %bb.27:
	leaq	L_.str.1(%rip), %rsi
LBB0_28:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_CHANWIDTH_80P80MHZ@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r14d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
	.comm	_WLAN_EID_VHT_OPERATION,4,2     ## @WLAN_EID_VHT_OPERATION
	.comm	_CHANWIDTH_160MHZ,4,2           ## @CHANWIDTH_160MHZ
	.comm	_CHANWIDTH_80P80MHZ,4,2         ## @CHANWIDTH_80P80MHZ
	.comm	_CHANWIDTH_80MHZ,4,2            ## @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_USE_HT,4,2           ## @CHANWIDTH_USE_HT
	.comm	_NUM_HOSTAPD_MODES,8,3          ## @NUM_HOSTAPD_MODES
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot determine operating class and channel"

	.comm	_PHY_TYPE_UNSPECIFIED,4,2       ## @PHY_TYPE_UNSPECIFIED
L_.str.1:                               ## @.str.1
	.asciz	"Cannot determine phy type"

	.no_dead_strip	_wpas_get_op_chan_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_get_op_chan_phy
_wpas_get_op_chan_phy:                  ; @wpas_get_op_chan_phy
	.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	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	x1, x25
	bl	_get_ie
	mov	x23, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x23, #4]
	cmp	w8, #4
	b.lo	LBB0_5
; %bb.2:
	ldr	w8, [x23, #8]!
Lloh3:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	mov	w24, #1
	b	LBB0_7
LBB0_4:
	mov	w24, #0
	b	LBB0_7
LBB0_5:
	mov	x23, #0
	mov	w24, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	csetm	w24, eq
LBB0_7:
Lloh12:
	adrp	x8, _WLAN_EID_VHT_OPERATION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLAN_EID_VHT_OPERATION@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x26
	mov	x1, x25
	bl	_get_ie
	cbz	x0, LBB0_15
; %bb.8:
	ldr	w8, [x0, #4]
	cmp	w8, #12
	b.lo	LBB0_15
; %bb.9:
	mov	x25, x0
	ldr	w8, [x25, #8]!
	cmp	w8, #3
	b.eq	LBB0_16
; %bb.10:
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.12:
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_18
; %bb.13:
	ldr	w9, [x0, #12]
	subs	w8, w8, w9
	cneg	w8, w8, mi
	cmp	w8, #8
	b.ne	LBB0_16
LBB0_14:
Lloh15:
	adrp	x8, _CHANWIDTH_160MHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CHANWIDTH_160MHZ@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	mov	w2, #0
	mov	x25, #0
	b	LBB0_20
LBB0_16:
Lloh17:
	adrp	x8, _CHANWIDTH_80P80MHZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHANWIDTH_80P80MHZ@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh19:
	adrp	x8, _CHANWIDTH_USE_HT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CHANWIDTH_USE_HT@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh21:
	adrp	x8, _CHANWIDTH_80MHZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CHANWIDTH_80MHZ@GOTPAGEOFF]
LBB0_19:
	ldr	w2, [x8]
LBB0_20:
	mov	x0, x20
	mov	x1, x24
	mov	x3, x22
	mov	x4, x21
	bl	_ieee80211_freq_to_channel_ext
Lloh23:
	adrp	x8, _NUM_HOSTAPD_MODES@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NUM_HOSTAPD_MODES@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.21:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_22:
	cmp	x23, #0
	cset	w1, ne
	cmp	x25, #0
	cset	w2, ne
	mov	x0, x20
	bl	_ieee80211_get_phy_type
	str	w0, [x19]
Lloh28:
	adrp	x8, _PHY_TYPE_UNSPECIFIED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PHY_TYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_25
; %bb.23:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_24:
Lloh33:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
	.comm	_WLAN_EID_VHT_OPERATION,4,2     ; @WLAN_EID_VHT_OPERATION
	.comm	_CHANWIDTH_160MHZ,4,2           ; @CHANWIDTH_160MHZ
	.comm	_CHANWIDTH_80P80MHZ,4,2         ; @CHANWIDTH_80P80MHZ
	.comm	_CHANWIDTH_80MHZ,4,2            ; @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_USE_HT,4,2           ; @CHANWIDTH_USE_HT
	.comm	_NUM_HOSTAPD_MODES,8,3          ; @NUM_HOSTAPD_MODES
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot determine operating class and channel"

	.comm	_PHY_TYPE_UNSPECIFIED,4,2       ; @PHY_TYPE_UNSPECIFIED
l_.str.1:                               ; @.str.1
	.asciz	"Cannot determine phy type"

	.no_dead_strip	_wpas_get_op_chan_phy
.subsections_via_symbols
