	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_set_security_params    ## -- Begin function hostapd_set_security_params
	.p2align	4, 0x90
_hostapd_set_security_params:           ## @hostapd_set_security_params
	.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
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	$0, 112(%rbx)
LBB0_2:
	movl	8(%rbx), %edi
	testb	$2, %dil
	je	LBB0_5
## %bb.3:
	cmpl	$0, 12(%rbx)
	jne	LBB0_5
## %bb.4:
	movl	16(%rbx), %eax
	movl	%eax, 12(%rbx)
LBB0_5:
	movl	20(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_wpa_select_ap_group_cipher
LBB0_7:
	movl	%eax, 24(%rbx)
	cmpl	$0, 104(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_WPA_CIPHER_TKIP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$600, %eax                      ## imm = 0x258
	movl	$86400, %ecx                    ## imm = 0x15180
	cmovel	%eax, %ecx
	movl	%ecx, 28(%rbx)
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	movq	96(%rbx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	movl	%edx, 12(%rax)
	movl	%ecx, 4(%rax)
LBB0_11:
	cmpl	$0, 8(%rbx)
	movq	88(%rbx), %rax
	je	LBB0_14
## %bb.12:
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	_SECURITY_WPA@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	_WPA_CIPHER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SECURITY_IEEE_802_1X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movl	32(%rbx), %ecx
	movl	%ecx, 56(%rbx)
	testl	%r14d, %r14d
	je	LBB0_24
## %bb.16:
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.17:
	cmpl	$13, %ecx
	jl	LBB0_28
LBB0_18:
	movq	_WPA_CIPHER_WEP104@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_19:
	movq	_SECURITY_WPA_PSK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	jmp	LBB0_37
LBB0_21:
	cmpq	$0, 72(%rbx)
	je	LBB0_31
## %bb.22:
	movq	64(%rbx), %rax
	cmpl	$13, (%rax)
	jl	LBB0_33
## %bb.23:
	movq	_WPA_CIPHER_WEP104@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_24:
	movl	%eax, 24(%rbx)
	movl	%eax, 16(%rbx)
	movl	%eax, 12(%rbx)
	jmp	LBB0_37
LBB0_25:
	cmpq	$0, 72(%rbx)
	je	LBB0_30
## %bb.26:
	movq	64(%rbx), %rax
	cmpl	$13, (%rax)
	jge	LBB0_18
LBB0_28:
	movq	_WPA_CIPHER_WEP40@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
LBB0_30:
	movl	%eax, 24(%rbx)
	movl	%eax, 16(%rbx)
	movl	%eax, 12(%rbx)
	movq	_WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_31:
	cmpq	$0, 80(%rbx)
	je	LBB0_38
## %bb.32:
	movq	_SECURITY_OSEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$0, 16(%rbx)
	movl	%eax, 12(%rbx)
	jmp	LBB0_37
LBB0_33:
	movq	_WPA_CIPHER_WEP40@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %eax
	movq	_SECURITY_STATIC_WEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movl	%eax, 24(%rbx)
	movl	%eax, 16(%rbx)
	movl	%eax, 12(%rbx)
	testl	%r14d, %r14d
	je	LBB0_37
LBB0_35:
	movq	_WPA_KEY_MGMT_NONE@GOTPCREL(%rip), %rax
LBB0_36:
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
LBB0_37:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_38:
	movq	_SECURITY_PLAINTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	testl	%r14d, %r14d
	je	LBB0_37
## %bb.39:
	movq	_WPA_CIPHER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 16(%rbx)
	movl	%eax, 12(%rbx)
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_CIPHER_TKIP,4,2            ## @WPA_CIPHER_TKIP
	.comm	_SECURITY_WPA,4,2               ## @SECURITY_WPA
	.comm	_SECURITY_WPA_PSK,4,2           ## @SECURITY_WPA_PSK
	.comm	_WPA_CIPHER_NONE,8,3            ## @WPA_CIPHER_NONE
	.comm	_SECURITY_IEEE_802_1X,4,2       ## @SECURITY_IEEE_802_1X
	.comm	_WPA_CIPHER_WEP104,4,2          ## @WPA_CIPHER_WEP104
	.comm	_WPA_CIPHER_WEP40,4,2           ## @WPA_CIPHER_WEP40
	.comm	_WPA_KEY_MGMT_IEEE8021X_NO_WPA,8,3 ## @WPA_KEY_MGMT_IEEE8021X_NO_WPA
	.comm	_SECURITY_STATIC_WEP,4,2        ## @SECURITY_STATIC_WEP
	.comm	_WPA_KEY_MGMT_NONE,8,3          ## @WPA_KEY_MGMT_NONE
	.comm	_SECURITY_OSEN,4,2              ## @SECURITY_OSEN
	.comm	_WPA_CIPHER_CCMP,8,3            ## @WPA_CIPHER_CCMP
	.comm	_SECURITY_PLAINTEXT,4,2         ## @SECURITY_PLAINTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_set_security_params    ; -- Begin function hostapd_set_security_params
	.p2align	2
_hostapd_set_security_params:           ; @hostapd_set_security_params
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	tbnz	w0, #1, LBB0_3
	b	LBB0_4
LBB0_2:
	str	xzr, [x19, #112]
	ldr	w0, [x19, #8]
	tbz	w0, #1, LBB0_4
LBB0_3:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_21
LBB0_4:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_6
LBB0_5:
	ldp	w2, w1, [x19, #12]
	bl	_wpa_select_ap_group_cipher
	mov	x8, x0
LBB0_6:
	str	w8, [x19, #24]
	ldr	w9, [x19, #104]
	cbnz	w9, LBB0_8
; %bb.7:
Lloh0:
	adrp	x9, _WPA_CIPHER_TKIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_CIPHER_TKIP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #20864
	movk	w10, #1, lsl #16
	mov	w11, #600
	cmp	w8, w9
	csel	w8, w11, w10, eq
	str	w8, [x19, #28]
LBB0_8:
	cbz	w20, LBB0_10
; %bb.9:
	ldr	x8, [x19, #96]
	ldr	w9, [x8, #8]
	str	w9, [x8, #12]
	ldr	w9, [x8]
	str	w9, [x8, #4]
LBB0_10:
	ldr	w9, [x19, #8]
	ldr	x8, [x19, #88]
	cbz	w9, LBB0_13
; %bb.11:
	cbz	x8, LBB0_19
; %bb.12:
Lloh3:
	adrp	x8, _SECURITY_WPA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECURITY_WPA@GOTPAGEOFF]
	b	LBB0_20
LBB0_13:
	cbz	x8, LBB0_22
; %bb.14:
Lloh5:
	adrp	x8, _WPA_CIPHER_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WPA_CIPHER_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SECURITY_IEEE_802_1X@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SECURITY_IEEE_802_1X@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x19, #48]
	ldr	w9, [x19, #32]
	str	w9, [x19, #56]
	cbz	w20, LBB0_26
; %bb.15:
	cbz	w9, LBB0_27
; %bb.16:
Lloh11:
	adrp	x8, _WPA_CIPHER_WEP104@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPA_CIPHER_WEP104@GOTPAGEOFF]
Lloh13:
	adrp	x10, _WPA_CIPHER_WEP40@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WPA_CIPHER_WEP40@GOTPAGEOFF]
	cmp	w9, #12
	csel	x8, x8, x10, gt
LBB0_17:
	ldr	w8, [x8]
LBB0_18:
	str	w8, [x19, #24]
	stp	w8, w8, [x19, #12]
Lloh15:
	adrp	x8, _WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPAGEOFF]
	b	LBB0_25
LBB0_19:
Lloh17:
	adrp	x8, _SECURITY_WPA_PSK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SECURITY_WPA_PSK@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	b	LBB0_32
LBB0_21:
	ldr	w8, [x19, #16]
	str	w8, [x19, #12]
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_6
	b	LBB0_5
LBB0_22:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_30
; %bb.23:
	ldr	x8, [x19, #64]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _WPA_CIPHER_WEP104@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WPA_CIPHER_WEP104@GOTPAGEOFF]
Lloh21:
	adrp	x10, _WPA_CIPHER_WEP40@GOTPAGE
Lloh22:
	ldr	x10, [x10, _WPA_CIPHER_WEP40@GOTPAGEOFF]
	cmp	w8, #12
	csel	x8, x9, x10, gt
Lloh23:
	adrp	x9, _SECURITY_STATIC_WEP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SECURITY_STATIC_WEP@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x19, #48]
	str	w8, [x19, #24]
	stp	w8, w8, [x19, #12]
	cbz	w20, LBB0_32
LBB0_24:
Lloh26:
	adrp	x8, _WPA_KEY_MGMT_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WPA_KEY_MGMT_NONE@GOTPAGEOFF]
LBB0_25:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	b	LBB0_32
LBB0_26:
	str	w8, [x19, #24]
	stp	w8, w8, [x19, #12]
	b	LBB0_32
LBB0_27:
	ldr	x9, [x19, #72]
	cbz	x9, LBB0_18
; %bb.28:
	ldr	x8, [x19, #64]
	ldr	w8, [x8]
	cmp	w8, #13
	b.lt	LBB0_35
; %bb.29:
Lloh28:
	adrp	x8, _WPA_CIPHER_WEP104@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WPA_CIPHER_WEP104@GOTPAGEOFF]
	b	LBB0_17
LBB0_30:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_33
; %bb.31:
Lloh30:
	adrp	x8, _SECURITY_OSEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SECURITY_OSEN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh33:
	adrp	x8, _WPA_CIPHER_CCMP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	stp	w8, wzr, [x19, #12]
LBB0_32:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_33:
Lloh36:
	adrp	x8, _SECURITY_PLAINTEXT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SECURITY_PLAINTEXT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	cbz	w20, LBB0_32
; %bb.34:
Lloh39:
	adrp	x8, _WPA_CIPHER_NONE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WPA_CIPHER_NONE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	stp	w8, w8, [x19, #12]
	b	LBB0_24
LBB0_35:
Lloh42:
	adrp	x8, _WPA_CIPHER_WEP40@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WPA_CIPHER_WEP40@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_CIPHER_TKIP,4,2            ; @WPA_CIPHER_TKIP
	.comm	_SECURITY_WPA,4,2               ; @SECURITY_WPA
	.comm	_SECURITY_WPA_PSK,4,2           ; @SECURITY_WPA_PSK
	.comm	_WPA_CIPHER_NONE,8,3            ; @WPA_CIPHER_NONE
	.comm	_SECURITY_IEEE_802_1X,4,2       ; @SECURITY_IEEE_802_1X
	.comm	_WPA_CIPHER_WEP104,4,2          ; @WPA_CIPHER_WEP104
	.comm	_WPA_CIPHER_WEP40,4,2           ; @WPA_CIPHER_WEP40
	.comm	_WPA_KEY_MGMT_IEEE8021X_NO_WPA,8,3 ; @WPA_KEY_MGMT_IEEE8021X_NO_WPA
	.comm	_SECURITY_STATIC_WEP,4,2        ; @SECURITY_STATIC_WEP
	.comm	_WPA_KEY_MGMT_NONE,8,3          ; @WPA_KEY_MGMT_NONE
	.comm	_SECURITY_OSEN,4,2              ; @SECURITY_OSEN
	.comm	_WPA_CIPHER_CCMP,8,3            ; @WPA_CIPHER_CCMP
	.comm	_SECURITY_PLAINTEXT,4,2         ; @SECURITY_PLAINTEXT
.subsections_via_symbols
