	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_media_get_mediareq    ## -- Begin function ifconfig_media_get_mediareq
	.p2align	4, 0x90
_ifconfig_media_get_mediareq:           ## @ifconfig_media_get_mediareq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_SIOCGIFXMEDIA@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	$0, (%rdx)
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	16(%rbx), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_AF_LOCAL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ifconfig_ioctlwrap
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ifconfig_ioctlwrap
	testq	%rax, %rax
	js	LBB0_11
LBB0_3:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leal	32(,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r13
	movq	24(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_ifconfig_ioctlwrap
	testq	%rax, %rax
	js	LBB0_13
## %bb.6:
	movq	%r13, (%r14)
	jmp	LBB0_9
LBB0_7:
	movq	_OTHER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_15
LBB0_8:
	movq	%rbx, (%r14)
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_10:
	movq	_OTHER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_12
LBB0_11:
	movq	_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
LBB0_12:
	movq	%rbx, %rdi
	jmp	LBB0_14
LBB0_13:
	movq	%r13, %rdi
LBB0_14:
	callq	_free
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFXMEDIA,8,3              ## @SIOCGIFXMEDIA
	.comm	_OTHER,8,3                      ## @OTHER
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_SIOCGIFMEDIA,8,3               ## @SIOCGIFMEDIA
	.comm	_OK,8,3                         ## @OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_media_get_mediareq    ; -- Begin function ifconfig_media_get_mediareq
	.p2align	2
_ifconfig_media_get_mediareq:           ; @ifconfig_media_get_mediareq
	.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
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SIOCGIFXMEDIA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFXMEDIA@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	str	xzr, [x2]
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w0, [x22, #16]
	mov	x1, x23
	mov	w2, #4
	bl	_strlcpy
Lloh3:
	adrp	x24, _AF_LOCAL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AF_LOCAL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_ifconfig_ioctlwrap
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_ifconfig_ioctlwrap
	tbnz	x0, #63, LBB0_10
LBB0_3:
	ldr	w8, [x22]
	cbz	w8, LBB0_8
; %bb.4:
	lsl	w8, w8, #2
	add	w1, w8, #32
	mov	x0, x22
	bl	_realloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	ldr	x8, [x0, #24]
	str	x8, [x0, #8]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x23
	bl	_ifconfig_ioctlwrap
	tbnz	x0, #63, LBB0_12
; %bb.6:
	mov	w0, #0
	str	x23, [x20]
	b	LBB0_15
LBB0_7:
Lloh8:
	adrp	x8, _OTHER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OTHER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	stp	x9, x8, [x19]
	b	LBB0_14
LBB0_8:
	mov	w0, #0
	str	x22, [x20]
	b	LBB0_15
LBB0_9:
Lloh14:
	adrp	x8, _OTHER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OTHER@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	stp	x9, x8, [x19]
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_11:
	mov	x0, x22
	b	LBB0_13
LBB0_12:
	mov	x0, x23
LBB0_13:
	bl	_free
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFXMEDIA,8,3              ; @SIOCGIFXMEDIA
	.comm	_OTHER,8,3                      ; @OTHER
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_SIOCGIFMEDIA,8,3               ; @SIOCGIFMEDIA
	.comm	_OK,8,3                         ; @OK
.subsections_via_symbols
