	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_set_iface_flags
_hostap_set_iface_flags:                ## @hostap_set_iface_flags
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r12), %esi
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_os_snprintf
	cmpl	(%r12), %eax
	jge	LBB0_5
## %bb.1:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_linux_set_iface_flags
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.3:
	leaq	-56(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_os_strlcpy
	movq	_HOSTAPD_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%r15), %edi
	movq	_SIOCSIFMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movl	$-1, %r14d
LBB0_8:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sap"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"hostap: AP interface name truncated"

	.comm	_HOSTAPD_MTU,4,2                ## @HOSTAPD_MTU
	.comm	_SIOCSIFMTU,4,2                 ## @SIOCSIFMTU
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Setting MTU failed - trying to survive with current value: ioctl[SIOCSIFMTU]: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_hostap_set_iface_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_set_iface_flags
_hostap_set_iface_flags:                ; @hostap_set_iface_flags
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IFNAMSIZ@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w1, [x23]
	ldr	w3, [x0, #4]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_os_snprintf
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.1:
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x21
	bl	_linux_set_iface_flags
	tbnz	x0, #63, LBB0_7
; %bb.2:
	cbz	w21, LBB0_5
; %bb.3:
	sub	x0, x29, #64
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldur	w0, [x29, #-60]
	ldr	w2, [x23]
	mov	x1, x20
	bl	_os_strlcpy
Lloh9:
	adrp	x8, _HOSTAPD_MTU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HOSTAPD_MTU@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stur	w8, [x29, #-64]
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _SIOCSIFMTU@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIOCSIFMTU@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	sub	x2, x29, #64
	bl	_ioctl
	cbz	x0, LBB0_8
; %bb.4:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sap"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"hostap: AP interface name truncated"

	.comm	_HOSTAPD_MTU,4,2                ; @HOSTAPD_MTU
	.comm	_SIOCSIFMTU,4,2                 ; @SIOCSIFMTU
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Setting MTU failed - trying to survive with current value: ioctl[SIOCSIFMTU]: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_hostap_set_iface_flags
.subsections_via_symbols
