	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_SetMode                 ## -- Begin function bundle_SetMode
	.p2align	4, 0x90
_bundle_SetMode:                        ## @bundle_SetMode
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movl	$1, %r15d
	cmpl	%edx, (%rax)
	je	LBB0_12
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	_PHYS_AUTO@GOTPCREL(%rip), %r12
	cmpl	%edx, (%r12)
	jne	LBB0_5
## %bb.2:
	testl	%ebx, 16(%r14)
	jne	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	movq	_INADDR_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_mode2Nam
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_log_Printf
	jmp	LBB0_11
LBB0_5:
	movq	%rsi, %rdi
	movl	%ebx, %esi
	callq	_datalink_SetMode
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	cmpl	%ebx, (%r12)
	jne	LBB0_10
## %bb.7:
	testl	%ebx, 16(%r14)
	jne	LBB0_10
## %bb.8:
	movq	(%r14), %rax
	movq	_PHASE_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	leaq	8(%r14), %rdi
	callq	_ipcp_InterfaceUp
LBB0_10:
	movq	%r14, %rdi
	callq	_bundle_LinksRemoved
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHYS_AUTO,4,2                  ## @PHYS_AUTO
	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"You must `set ifaddr' or `open' before changing mode to %s\n"

	.comm	_PHASE_NETWORK,8,3              ## @PHASE_NETWORK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_SetMode                 ; -- Begin function bundle_SetMode
	.p2align	2
_bundle_SetMode:                        ; @bundle_SetMode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	ldr	w8, [x8]
	cmp	w8, w2
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x21, _PHYS_AUTO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHYS_AUTO@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w2
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #16]
	tst	w8, w20
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _INADDR_ANY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INADDR_ANY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _LogWARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_mode2Nam
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_log_Printf
	mov	w0, #0
	b	LBB0_12
LBB0_5:
	mov	x0, x1
	mov	x1, x20
	bl	_datalink_SetMode
	cbz	w0, LBB0_12
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x19, #16]
	tst	w8, w20
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _PHASE_NETWORK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PHASE_NETWORK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	add	x0, x19, #8
	bl	_ipcp_InterfaceUp
LBB0_10:
	mov	x0, x19
	bl	_bundle_LinksRemoved
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PHYS_AUTO,4,2                  ; @PHYS_AUTO
	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"You must `set ifaddr' or `open' before changing mode to %s\n"

	.comm	_PHASE_NETWORK,8,3              ; @PHASE_NETWORK
.subsections_via_symbols
