	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function media_status
_media_status:                          ## @media_status
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	-104(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFXMEDIA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r14d, %edi
	movl	%r15d, %edx
	callq	_ioctl
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	%r15d, %edx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_36
LBB0_2:
	movl	-104(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.4:
	shll	$2, %edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	%r12, -96(%rbp)
	testq	%rbx, %rbx
	js	LBB0_9
## %bb.7:
	movl	(%r13), %esi
	movl	%r14d, %edi
	movl	%r15d, %edx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_12
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_3:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	jmp	LBB0_36
LBB0_9:
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	%r15d, %edx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
LBB0_11:
	movl	$1, %edi
	callq	_err
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-88(%rbp), %rdi
	movl	$1, %esi
	callq	_print_media_word
	movq	-80(%rbp), %rax
	cmpq	-88(%rbp), %rax
	je	LBB0_14
## %bb.13:
	movl	$32, %edi
	callq	_putchar
	movl	$40, %edi
	callq	_putchar
	movq	-80(%rbp), %rdi
	xorl	%esi, %esi
	callq	_print_media_word
	movl	$41, %edi
	callq	_putchar
LBB0_14:
	movl	$10, %edi
	callq	_putchar
	movq	_IFM_AVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_30
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-80(%rbp), %rdi
	callq	_IFM_TYPE
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_16
## %bb.20:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_24
## %bb.21:
	leaq	L_.str.6(%rip), %rdi
LBB0_22:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_29
LBB0_16:
	cmpl	$128, %eax
	jne	LBB0_29
## %bb.17:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_24
## %bb.18:
	movq	-80(%rbp), %rdi
	callq	_IFM_OPMODE
	movq	_IFM_IEEE80211_STA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.19:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_22
LBB0_24:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	-168(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	-116(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFDOWNREASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_25
LBB0_29:
	movl	$10, %edi
	callq	_putchar
LBB0_30:
	cmpl	$0, -104(%rbp)
	jle	LBB0_35
## %bb.31:
	movq	_supmedia@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.32:
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpl	$0, -104(%rbp)
	jle	LBB0_35
## %bb.33:
	leaq	L_.str.13(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r12,%rbx,4), %edi
	callq	_print_media_word_ifconfig
	movl	$10, %edi
	callq	_putchar
	incq	%rbx
	movslq	-104(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_34
LBB0_35:
	movq	%r12, %rdi
	callq	_free
LBB0_36:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	-132(%rbp), %eax
	cmpl	$131, %eax
	je	LBB0_28
## %bb.26:
	cmpl	$132, %eax
	jne	LBB0_29
## %bb.27:
	movq	-128(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_29
LBB0_23:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_22
LBB0_28:
	movl	-120(%rbp), %esi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_name,4,2                       ## @name
	.comm	_SIOCGIFXMEDIA,4,2              ## @SIOCGIFXMEDIA
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no media types?"

L_.str.1:                               ## @.str.1
	.asciz	"malloc"

L_.str.2:                               ## @.str.2
	.asciz	"SIOCGIFXMEDIA"

L_.str.3:                               ## @.str.3
	.asciz	"SIOCGIFMEDIA"

L_.str.4:                               ## @.str.4
	.asciz	"\tmedia: "

	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
L_.str.5:                               ## @.str.5
	.asciz	"\tstatus: "

	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
L_.str.6:                               ## @.str.6
	.asciz	"active"

	.comm	_IFM_IEEE80211_STA,4,2          ## @IFM_IEEE80211_STA
L_.str.7:                               ## @.str.7
	.asciz	"associated"

L_.str.8:                               ## @.str.8
	.asciz	"running"

L_.str.9:                               ## @.str.9
	.asciz	"no carrier"

	.comm	_SIOCGIFDOWNREASON,4,2          ## @SIOCGIFDOWNREASON
L_.str.10:                              ## @.str.10
	.asciz	" (%s)"

L_.str.11:                              ## @.str.11
	.asciz	" (vendor code %d)"

	.comm	_supmedia,8,3                   ## @supmedia
L_.str.13:                              ## @.str.13
	.asciz	"\t\t"

L_str:                                  ## @str
	.asciz	"\tsupported media:"

	.no_dead_strip	_media_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function media_status
_media_status:                          ; @media_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x0
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w0, [sp, #136]
Lloh0:
	adrp	x22, _name@GOTPAGE
Lloh1:
	ldr	x22, [x22, _name@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_strlcpy
Lloh2:
	adrp	x23, _SIOCGIFXMEDIA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SIOCGIFXMEDIA@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #80
	mov	x0, x20
	bl	_ioctl
	mov	x21, x0
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #80
	mov	x0, x20
	bl	_ioctl
	tbnz	x0, #63, LBB0_31
LBB0_2:
	ldr	w8, [sp, #80]
	cbz	w8, LBB0_7
; %bb.3:
	lsl	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.4:
	str	x19, [sp, #88]
	tbnz	x21, #63, LBB0_9
LBB0_5:
	ldr	w1, [x23]
	add	x2, sp, #80
	mov	x0, x20
	bl	_ioctl
	tbz	x0, #63, LBB0_12
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_7:
	ldr	w1, [x22]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_31
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	str	x19, [sp, #88]
	tbz	x21, #63, LBB0_5
LBB0_9:
Lloh13:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #80
	mov	x0, x20
	bl	_ioctl
	tbz	x0, #63, LBB0_12
; %bb.10:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	w0, #1
	bl	_err
LBB0_12:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #96]
	mov	w1, #1
	bl	_print_media_word
	ldp	x9, x8, [sp, #96]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	mov	w0, #32
	bl	_putchar
	mov	w0, #40
	bl	_putchar
	ldr	x0, [sp, #104]
	mov	w1, #0
	bl	_print_media_word
	mov	w0, #41
	bl	_putchar
LBB0_14:
	mov	w0, #10
	bl	_putchar
	ldr	w8, [sp, #112]
Lloh20:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.15:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #104]
	bl	_IFM_TYPE
	sub	w8, w0, #129
	cmp	w8, #2
	b.hs	LBB0_19
; %bb.16:
	ldr	w8, [sp, #112]
Lloh25:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.17:
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_18:
	bl	_printf
	b	LBB0_24
LBB0_19:
	cmp	w0, #128
	b.ne	LBB0_24
; %bb.20:
	ldr	w8, [sp, #112]
Lloh30:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.21:
	ldr	x0, [sp, #104]
	bl	_IFM_OPMODE
Lloh33:
	adrp	x8, _IFM_IEEE80211_STA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IFM_IEEE80211_STA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_35
; %bb.22:
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_18
LBB0_23:
Lloh38:
	adrp	x0, l_.str.9@PAGE
Lloh39:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w0, [sp, #68]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_strlcpy
Lloh40:
	adrp	x8, _SIOCGIFDOWNREASON@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SIOCGIFDOWNREASON@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_32
LBB0_24:
	mov	w0, #10
	bl	_putchar
LBB0_25:
	ldr	w8, [sp, #80]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.26:
Lloh43:
	adrp	x8, _supmedia@GOTPAGE
Lloh44:
	ldr	x8, [x8, _supmedia@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cbz	x8, LBB0_30
; %bb.27:
Lloh46:
	adrp	x0, l_str@PAGE
Lloh47:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [sp, #80]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x21, #0
Lloh48:
	adrp	x20, l_.str.13@PAGE
Lloh49:
	add	x20, x20, l_.str.13@PAGEOFF
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_printf
	ldr	w0, [x19, x21, lsl #2]
	bl	_print_media_word_ifconfig
	mov	w0, #10
	bl	_putchar
	add	x21, x21, #1
	ldrsw	x8, [sp, #80]
	cmp	x21, x8
	b.lt	LBB0_29
LBB0_30:
	mov	x0, x19
	bl	_free
LBB0_31:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_32:
	ldr	w8, [sp, #52]
	cmp	w8, #131
	b.eq	LBB0_36
; %bb.33:
	cmp	w8, #132
	b.ne	LBB0_24
; %bb.34:
	ldr	x8, [sp, #56]
	str	x8, [sp]
Lloh50:
	adrp	x0, l_.str.10@PAGE
Lloh51:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_18
LBB0_35:
Lloh52:
	adrp	x0, l_.str.8@PAGE
Lloh53:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_18
LBB0_36:
	ldr	w8, [sp, #64]
	str	x8, [sp]
Lloh54:
	adrp	x0, l_.str.11@PAGE
Lloh55:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_name,4,2                       ; @name
	.comm	_SIOCGIFXMEDIA,4,2              ; @SIOCGIFXMEDIA
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no media types?"

l_.str.1:                               ; @.str.1
	.asciz	"malloc"

l_.str.2:                               ; @.str.2
	.asciz	"SIOCGIFXMEDIA"

l_.str.3:                               ; @.str.3
	.asciz	"SIOCGIFMEDIA"

l_.str.4:                               ; @.str.4
	.asciz	"\tmedia: "

	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
l_.str.5:                               ; @.str.5
	.asciz	"\tstatus: "

	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
l_.str.6:                               ; @.str.6
	.asciz	"active"

	.comm	_IFM_IEEE80211_STA,4,2          ; @IFM_IEEE80211_STA
l_.str.7:                               ; @.str.7
	.asciz	"associated"

l_.str.8:                               ; @.str.8
	.asciz	"running"

l_.str.9:                               ; @.str.9
	.asciz	"no carrier"

	.comm	_SIOCGIFDOWNREASON,4,2          ; @SIOCGIFDOWNREASON
l_.str.10:                              ; @.str.10
	.asciz	" (%s)"

l_.str.11:                              ; @.str.11
	.asciz	" (vendor code %d)"

	.comm	_supmedia,8,3                   ; @supmedia
l_.str.13:                              ; @.str.13
	.asciz	"\t\t"

l_str:                                  ; @str
	.asciz	"\tsupported media:"

	.no_dead_strip	_media_status
.subsections_via_symbols
