	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsd_ctrl_iface
_bsd_ctrl_iface:                        ## @bsd_ctrl_iface
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movl	-28(%rbp), %edi
	movl	16(%rbx), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	-32(%rbp), %edx
	movl	%edx, (%rbx)
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	testl	%edx, %ecx
	jne	LBB0_12
## %bb.5:
	orl	%edx, %ecx
	jmp	LBB0_8
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	testl	%edx, %ecx
	je	LBB0_11
## %bb.7:
	notl	%ecx
	andl	%edx, %ecx
LBB0_8:
	movl	%ecx, -32(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movl	-32(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl[SIOCGIFFLAGS]: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
L_.str.1:                               ## @.str.1
	.asciz	"ioctl[SIOCSIFFLAGS]: %s"

	.no_dead_strip	_bsd_ctrl_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsd_ctrl_iface
_bsd_ctrl_iface:                        ; @bsd_ctrl_iface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	ldr	w0, [sp, #12]
	ldr	w1, [x19, #16]
	mov	w2, #4
	bl	_os_strlcpy
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
	str	w8, [x19]
Lloh3:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w10, w9, w8
	cbz	w20, LBB0_5
; %bb.2:
	cbnz	w10, LBB0_9
; %bb.3:
	orr	w8, w9, w8
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_5:
	cbz	w10, LBB0_9
; %bb.6:
	bic	w8, w8, w9
LBB0_7:
	str	w8, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_10
; %bb.8:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_wpa_printf
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl[SIOCGIFFLAGS]: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
l_.str.1:                               ; @.str.1
	.asciz	"ioctl[SIOCSIFFLAGS]: %s"

	.no_dead_strip	_bsd_ctrl_iface
.subsections_via_symbols
