	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_set_hostapd             ## -- Begin function hostap_set_hostapd
	.p2align	4, 0x90
_hostap_set_hostapd:                    ## @hostap_set_hostapd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$2, %esi
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	je	LBB0_8
## %bb.3:
	testl	%esi, %esi
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_hostap_enable_hostapd
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_hostap_disable_hostapd
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
	movl	%ecx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_set_hostapd             ; -- Begin function hostap_set_hostapd
	.p2align	2
_hostap_set_hostapd:                    ; @hostap_set_hostapd
	.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
	cmp	w1, #2
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	cbz	w1, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x2
	bl	_hostap_enable_hostapd
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_6:
	str	wzr, [x19]
	mov	x0, x19
	mov	x1, x2
	bl	_hostap_disable_hostapd
	cbz	w0, LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
