	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_set_channels
_ionic_set_channels:                    ## @ionic_set_channels
	.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	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	$0, 24(%r12)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 16(%r12)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%r12)
	je	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	cmpq	(%r14), %rax
	je	LBB0_13
## %bb.7:
	movq	_IONIC_LIF_QUEUE_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ionic_wait_for_bit
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_IONIC_LIF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_ionic_stop
	movq	(%r12), %rax
	movq	%rax, (%r14)
	movq	%r15, %rdi
	callq	_ionic_open
	jmp	LBB0_12
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	(%r12), %rax
	movq	%rax, (%r14)
LBB0_12:
	movl	(%r13), %edi
	movl	8(%r14), %esi
	callq	_clear_bit
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IONIC_LIF_QUEUE_RESET,4,2      ## @IONIC_LIF_QUEUE_RESET
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IONIC_LIF_UP,4,2               ## @IONIC_LIF_UP
	.no_dead_strip	_ionic_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_set_channels
_ionic_set_channels:                    ; @ionic_set_channels
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x21, #24]
	cbnz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x21, #16]
	cbnz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	mov	x19, x0
	ldr	x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.8:
Lloh2:
	adrp	x22, _IONIC_LIF_QUEUE_RESET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IONIC_LIF_QUEUE_RESET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ionic_wait_for_bit
	cbz	w0, LBB0_11
; %bb.9:
Lloh4:
	adrp	x8, _IONIC_LIF_UP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IONIC_LIF_UP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_ionic_stop
	ldr	x8, [x21]
	str	x8, [x19]
	mov	x0, x20
	bl	_ionic_open
	b	LBB0_13
LBB0_11:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_13:
	ldr	w0, [x22]
	ldr	w1, [x19, #8]
	bl	_clear_bit
LBB0_14:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IONIC_LIF_QUEUE_RESET,4,2      ; @IONIC_LIF_QUEUE_RESET
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IONIC_LIF_UP,4,2               ; @IONIC_LIF_UP
	.no_dead_strip	_ionic_set_channels
.subsections_via_symbols
