	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_media
_print_media:                           ## @print_media
	.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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rsi), %esi
	leaq	-136(%rbp), %rdx
	callq	_ifconfig_media_get_mediareq
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ifconfig_err_errtype
	movq	_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	-136(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ifconfig_media_get_type
	movq	%rax, %rbx
	movq	-136(%rbp), %rax
	movq	(%rax), %rdi
	callq	_ifconfig_media_get_subtype
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	-136(%rbp), %rax
	movq	8(%rax), %rdi
	cmpq	(%rax), %rdi
	jne	LBB0_4
## %bb.7:
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_8
LBB0_4:
	callq	_ifconfig_media_get_subtype
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	-136(%rbp), %rax
	movq	8(%rax), %rdi
	leaq	-128(%rbp), %rsi
	movl	$80, %edx
	callq	_ifconfig_media_get_options_string
	cmpb	$0, -128(%rbp)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	leaq	-128(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_8
LBB0_6:
	leaq	L_str.10(%rip), %rdi
	callq	_puts
LBB0_8:
	movq	-136(%rbp), %rdi
	movq	_IFM_AVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	je	LBB0_10
## %bb.9:
	callq	_ifconfig_media_get_status
	leaq	L_.str.6(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_10:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	-136(%rbp), %rdi
	cmpl	$0, 20(%rdi)
	jle	LBB0_16
## %bb.11:
	leaq	L_.str.8(%rip), %r14
	leaq	-128(%rbp), %r12
	leaq	L_.str.9(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	-136(%rbp), %rdi
	movslq	20(%rdi), %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_ifconfig_media_get_subtype
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	-136(%rbp), %rax
	movq	24(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	movl	$80, %edx
	callq	_ifconfig_media_get_options_string
	cmpb	$0, -128(%rbp)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_15
LBB0_16:
	callq	_free
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OK,8,3                         ## @OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get media info"

L_.str.1:                               ## @.str.1
	.asciz	"\tmedia: %s %s"

L_.str.2:                               ## @.str.2
	.asciz	" (%s"

L_.str.3:                               ## @.str.3
	.asciz	" <%s>)\n"

	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
L_.str.6:                               ## @.str.6
	.asciz	"\tstatus: %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"\t\tmedia %s"

L_.str.9:                               ## @.str.9
	.asciz	" mediaopt %s\n"

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

L_str.10:                               ## @str.10
	.asciz	")"

	.no_dead_strip	_print_media
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_media
_print_media:                           ; @print_media
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w1, [x1]
	add	x2, sp, #16
	bl	_ifconfig_media_get_mediareq
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ifconfig_err_errtype
Lloh3:
	adrp	x8, _OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	bl	_ifconfig_media_get_type
	mov	x19, x0
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	bl	_ifconfig_media_get_subtype
	stp	x19, x0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #16]
	ldp	x8, x0, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #10
	bl	_putchar
	b	LBB0_8
LBB0_5:
	bl	_ifconfig_media_get_subtype
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #8]
	add	x19, sp, #24
	add	x1, sp, #24
	mov	w2, #80
	bl	_ifconfig_media_get_options_string
	ldrb	w8, [sp, #24]
	cbz	w8, LBB0_7
; %bb.6:
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_str.10@PAGE
Lloh15:
	add	x0, x0, l_str.10@PAGEOFF
	bl	_puts
LBB0_8:
	ldr	x0, [sp, #16]
	ldr	w8, [x0, #16]
Lloh16:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	bl	_ifconfig_media_get_status
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_10:
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x0, [sp, #16]
	ldr	w8, [x0, #20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x21, #0
Lloh23:
	adrp	x19, l_.str.8@PAGE
Lloh24:
	add	x19, x19, l_.str.8@PAGEOFF
	add	x22, sp, #24
Lloh25:
	adrp	x20, l_.str.9@PAGE
Lloh26:
	add	x20, x20, l_.str.9@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x21, #1
	ldr	x0, [sp, #16]
	ldrsw	x8, [x0, #20]
	cmp	x21, x8
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #24]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	bl	_ifconfig_media_get_subtype
	str	x0, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x8, [sp, #16]
	ldr	x8, [x8, #24]
	ldr	x0, [x8, x23]
	add	x1, sp, #24
	mov	w2, #80
	bl	_ifconfig_media_get_options_string
	ldrb	w8, [sp, #24]
	cbz	w8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	str	x22, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_13
LBB0_16:
	bl	_free
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_OK,8,3                         ; @OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get media info"

l_.str.1:                               ; @.str.1
	.asciz	"\tmedia: %s %s"

l_.str.2:                               ; @.str.2
	.asciz	" (%s"

l_.str.3:                               ; @.str.3
	.asciz	" <%s>)\n"

	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
l_.str.6:                               ; @.str.6
	.asciz	"\tstatus: %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"\t\tmedia %s"

l_.str.9:                               ; @.str.9
	.asciz	" mediaopt %s\n"

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

l_str.10:                               ; @str.10
	.asciz	")"

	.no_dead_strip	_print_media
.subsections_via_symbols
