	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_port_get_ifstplist
_bridge_port_get_ifstplist:             ## @bridge_port_get_ifstplist
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	$0, (%rsi)
	movl	(%rdi), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	_BRDGGIFSSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$16, -80(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	(%r14), %rdi
	movl	$512, %ebx                      ## imm = 0x200
	movl	$512, %esi                      ## imm = 0x200
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_sock@GOTPCREL(%rip), %r12
	movq	_SIOCGDRVSPEC@GOTPCREL(%rip), %r13
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -56(%rbp)
	movq	%rax, (%r14)
	movq	%rax, -48(%rbp)
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movslq	%ebx, %rdx
	cmpq	%rdx, %rcx
	jb	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$256, %ebx                      ## imm = 0x100
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
	movq	(%r14), %rdi
	callq	_free
	movq	$0, (%r14)
	jmp	LBB0_7
LBB0_6:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
	movq	(%r14), %rdi
	callq	_free
LBB0_7:
	movl	$-1, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_BRDGGIFSSTP,4,2                ## @BRDGGIFSSTP
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get bridge STP ports list: realloc failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCGDRVSPEC,4,2               ## @SIOCGDRVSPEC
L_.str.1:                               ## @.str.1
	.asciz	"get bridge STP ports list: ioctl (BRDGGIFSSTP) failed: %s"

	.no_dead_strip	_bridge_port_get_ifstplist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_port_get_ifstplist
_bridge_port_get_ifstplist:             ; @bridge_port_get_ifstplist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	str	xzr, [x1]
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_strlcpy
Lloh3:
	adrp	x8, _BRDGGIFSSTP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRDGGIFSSTP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	w8, #16
	str	w8, [sp, #8]
	add	x8, sp, #32
	str	x8, [sp, #16]
	ldr	x0, [x19]
	mov	w1, #512
	bl	_realloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	w20, #512
Lloh6:
	adrp	x21, _sock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _sock@GOTPAGEOFF]
Lloh8:
	adrp	x22, _SIOCGDRVSPEC@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SIOCGDRVSPEC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w20, [sp, #32]
	str	x0, [x19]
	str	x0, [sp, #40]
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x0, [sp, #32]
	add	x8, x0, #4
	cmp	x8, w20, sxtw
	b.lo	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #256
	ldr	x0, [x19]
	mov	x1, x20
	bl	_realloc
	cbnz	x0, LBB0_2
LBB0_5:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_syslog
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syslog
	ldr	x0, [x19]
	bl	_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_BRDGGIFSSTP,4,2                ; @BRDGGIFSSTP
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get bridge STP ports list: realloc failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCGDRVSPEC,4,2               ; @SIOCGDRVSPEC
l_.str.1:                               ; @.str.1
	.asciz	"get bridge STP ports list: ioctl (BRDGGIFSSTP) failed: %s"

	.no_dead_strip	_bridge_port_get_ifstplist
.subsections_via_symbols
