	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setifmediacallback
_setifmediacallback:                    ## @setifmediacallback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpb	$0, _setifmediacallback.did_it(%rip)
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movl	8(%rsi), %eax
	movq	_ifr@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_SIOCSIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movb	$1, _setifmediacallback.did_it(%rip)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_setifmediacallback.did_it,1,2 ## @setifmediacallback.did_it
	.comm	_ifr,4,2                        ## @ifr
	.comm	_SIOCSIFMEDIA,4,2               ## @SIOCSIFMEDIA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCSIFMEDIA (media)"

	.no_dead_strip	_setifmediacallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setifmediacallback
_setifmediacallback:                    ; @setifmediacallback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	adrp	x20, _setifmediacallback.did_it@PAGE
	ldrb	w8, [x20, _setifmediacallback.did_it@PAGEOFF]
	tbnz	w8, #0, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x2, _ifr@GOTPAGE
Lloh1:
	ldr	x2, [x2, _ifr@GOTPAGEOFF]
	str	w8, [x2]
Lloh2:
	adrp	x8, _SIOCSIFMEDIA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCSIFMEDIA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ioctl
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	w8, #1
	strb	w8, [x20, _setifmediacallback.did_it@PAGEOFF]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_setifmediacallback.did_it,1,2 ; @setifmediacallback.did_it
	.comm	_ifr,4,2                        ; @ifr
	.comm	_SIOCSIFMEDIA,4,2               ; @SIOCSIFMEDIA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCSIFMEDIA (media)"

	.no_dead_strip	_setifmediacallback
.subsections_via_symbols
