	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_set_ieee8021x
_hostap_set_ieee8021x:                  ## @hostap_set_ieee8021x
	.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	%rdi, %r12
	movl	(%rsi), %ebx
	movq	_PRISM2_PARAM_IEEE_802_1X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_hostap_ioctl_prism2param
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_str.2(%rip), %r15
LBB0_5:
	movq	%r15, %rdi
	callq	_puts
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	movq	_PRISM2_PARAM_HOST_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_hostap_ioctl_prism2param
	leaq	L_str(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_PRISM2_PARAM_HOST_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_hostap_ioctl_prism2param
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PRISM2_PARAM_IEEE_802_1X,4,2   ## @PRISM2_PARAM_IEEE_802_1X
	.comm	_PRISM2_PARAM_HOST_DECRYPT,4,2  ## @PRISM2_PARAM_HOST_DECRYPT
	.comm	_PRISM2_PARAM_HOST_ENCRYPT,4,2  ## @PRISM2_PARAM_HOST_ENCRYPT
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Could not setup host-based encryption in kernel driver."

L_str.2:                                ## @str.2
	.asciz	"Could not setup IEEE 802.1X support in kernel driver."

	.no_dead_strip	_hostap_set_ieee8021x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_set_ieee8021x
_hostap_set_ieee8021x:                  ; @hostap_set_ieee8021x
	.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	x19, x0
	ldr	w20, [x1]
Lloh0:
	adrp	x8, _PRISM2_PARAM_IEEE_802_1X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRISM2_PARAM_IEEE_802_1X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_hostap_ioctl_prism2param
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_str.2@PAGE
Lloh4:
	add	x0, x0, l_str.2@PAGEOFF
	b	LBB0_6
LBB0_2:
	cbz	w20, LBB0_8
; %bb.3:
Lloh5:
	adrp	x8, _PRISM2_PARAM_HOST_DECRYPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRISM2_PARAM_HOST_DECRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostap_ioctl_prism2param
	cbnz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _PRISM2_PARAM_HOST_ENCRYPT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PRISM2_PARAM_HOST_ENCRYPT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostap_ioctl_prism2param
	cbz	x0, LBB0_7
LBB0_5:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
LBB0_6:
	bl	_puts
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PRISM2_PARAM_IEEE_802_1X,4,2   ; @PRISM2_PARAM_IEEE_802_1X
	.comm	_PRISM2_PARAM_HOST_DECRYPT,4,2  ; @PRISM2_PARAM_HOST_DECRYPT
	.comm	_PRISM2_PARAM_HOST_ENCRYPT,4,2  ; @PRISM2_PARAM_HOST_ENCRYPT
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Could not setup host-based encryption in kernel driver."

l_str.2:                                ; @str.2
	.asciz	"Could not setup IEEE 802.1X support in kernel driver."

	.no_dead_strip	_hostap_set_ieee8021x
.subsections_via_symbols
