	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip175c_set_flags
_ip175c_set_flags:                      ## @ip175c_set_flags
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	16(%rax), %edi
	callq	_REG_SUPP
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movl	16(%rax), %esi
	movq	%rbx, %rdi
	callq	_getPhy
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	8(%rbx), %rdx
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	js	LBB0_8
## %bb.5:
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.6:
	orl	%esi, %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	notl	%esi
	andl	%esi, %eax
LBB0_8:
	movl	4(%rdx), %ecx
	testl	%ecx, %ecx
	js	LBB0_12
## %bb.9:
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	orl	%esi, %eax
	jmp	LBB0_12
LBB0_11:
	notl	%esi
	andl	%esi, %eax
LBB0_12:
	movl	8(%rdx), %ecx
	testl	%ecx, %ecx
	js	LBB0_17
## %bb.13:
	movl	12(%rdx), %esi
	leal	-1(%rsi), %edi
	shll	%cl, %edi
	notl	%edi
	andl	%edi, %eax
	movl	(%rbx), %edi
	cmpl	%esi, %edi
	jle	LBB0_15
## %bb.14:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orl	%esi, %eax
	jmp	LBB0_17
LBB0_15:
	testl	%edi, %edi
	jle	LBB0_17
## %bb.16:
	decl	%edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%edi, %eax
LBB0_17:
	movl	16(%rdx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_setPhy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ip175c_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip175c_set_flags
_ip175c_set_flags:                      ; @ip175c_set_flags
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #16]
	bl	_REG_SUPP
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #16]
	mov	x0, x19
	bl	_getPhy
	mov	x2, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_4
; %bb.3:
	ldr	x10, [x19, #24]
	mov	w11, #1
	lsl	w9, w11, w9
	bic	w11, w2, w9
	orr	w9, w9, w2
	cmp	x10, #0
	csel	w2, w11, w9, eq
LBB0_4:
	ldr	w9, [x8, #4]
	tbnz	w9, #31, LBB0_6
; %bb.5:
	ldr	x10, [x19, #16]
	mov	w11, #1
	lsl	w9, w11, w9
	bic	w11, w2, w9
	orr	w9, w9, w2
	cmp	x10, #0
	csel	w2, w11, w9, eq
LBB0_6:
	ldr	w9, [x8, #8]
	tbnz	w9, #31, LBB0_8
; %bb.7:
	ldr	w10, [x8, #12]
	sub	w11, w10, #1
	lsl	w11, w11, w9
	bic	w11, w2, w11
	ldr	w12, [x19]
	subs	w13, w12, #1
	lsl	w13, w13, w9
	orr	w13, w11, w13
	csel	w13, w11, w13, lt
	lsl	w9, w10, w9
	orr	w9, w11, w9
	cmp	w12, w10
	csel	w2, w13, w9, le
LBB0_8:
	ldr	w1, [x8, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setPhy
LBB0_9:
	mov	w2, #0
LBB0_10:
	mov	x0, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ip175c_set_flags
.subsections_via_symbols
